Skip to content

Support for schema with patternProperties? #97

@askanium

Description

@askanium

First of all, thanks for an awesome library.

Are there any plans to support dynamic object properties defined with patternProperties?

For instance, here is a basic example:

{
  "type": "object",
  "patternProperties": {
    ".*": {
      "type": "string",
      "enum": ["READ", "WRITE", "ALL"]
    }
  }
}

This validates an object with any key that has a value from the enum. However, rendering the corresponding UI fails with the following error:

Schema of type 'object' must have at least one of these keys: ['properties' or 'keys' or 'oneOf' or 'anyOf' or 'allOf']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions