javro icon indicating copy to clipboard operation
javro copied to clipboard

Support for `anyOf` and etc.

Open sananguliyev opened this issue 3 years ago • 0 comments

First thanks for the repo. It looks fantastic. I have just question whether you have a plan to cover all json schema options like anyOf and etc. E.g. current version is not able to convert this.

{
  "$schema": "http://json-schema.org/schema#",
  "type": "object",
  "properties": {
    "hi": {
      "anyOf": [
        {
          "type": [
            "integer",
            "string"
          ]
        },
        {
          "type": "array",
          "items": {
            "type": [
              "integer",
              "string"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "a": {
              "type": "string"
            }
          },
          "required": [
            "a"
          ]
        }
      ]
    }
  },
  "required": [
    "hi"
  ]
}

sananguliyev avatar Nov 17 '21 23:11 sananguliyev