Skip to content

Add support for type: with multiple options #282

@5c0r

Description

@5c0r

Prerequisites

Description

I am using Json.NET Schema to return a Json Schema with this type of properties

        "AddressList": {
          "type": [
            "array", 
            "null" 
          ],
          "items": {
            "type": [
              "string"
            ]
          }
        },

According to Json Schema specification, type array which has null will also represent Optional input.
If change to

 "type: " [ "string"]

or

"type:" : "string"

Everything would work fine

Expected behavior

  • I expect this to display an input field which more record can be added

Actual behavior

  • Unsupported field schema { "type": [ "array", "null" ], "items": { "type": [ "string" ] } }.

Version

I am running this on Playground Page directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIs a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions