var types = {"enum": ["pad", "fit", "none"]};

export default {
  "defs": {
    "autosize": {
      "oneOf": [
        types,
        {
          "type": "object",
          "properties": {
            "type": types,
            "resize": {"type": "boolean"},
            "contains": {"enum": ["content", "padding"]}
          },
          "required": ["type"],
          "additionalProperties": false
        }
      ],
      "default": "pad"
    }
  }
};

@@ -28,16 +28,34 @@
 , %22fit%22,
+ %22fit-x%22, %22fit-y%22,
  %22none%22%5D

Add autosize fit-x, fit-y to schema.