Skip to content

Support patternProperties in components.schemas #754

Closed as not planned
Closed as not planned
@KevinPoole

Description

@KevinPoole

I have a component.schema of the following form:

      "SomeSchemaName": {
        "title": "SomeSchemaName",
        "type": "object",
        "properties": {
          "somePropertyName": {
            "type": "object",
            "additionalProperties": false,
            "patternProperties": {
              "^[0-9]+$": {
                "$ref": "#/components/schemas/OtherSchemaName"
              }
            }
          }
        }
      },

Of particular importance is the fact that I am utilizing patternProperties. This is a valid usage according to the following issue:

Anyone know if this is something that would be expected to work right now? If not, any ideas on what it would take to support this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs welcomePRs are welcome to solve this issue!enhancementNew feature or requeststale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions