Skip to content

Nested schema support #8

@Reggino

Description

@Reggino

Thank you for this, this is awesome.

I ran into an issue using nested schema's. E.g. i'm using the following schemas:

 "Invoice": {
      "type": "object",
      "properties": {
        "invoiceDate": {
          "type": "string",
          "format": "date"
        },
        "lines": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/InvoiceLine"
          }
        },
...
      }
    }

    "InvoiceLine": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
      },
...
    },

I'm using AJV myself in this application and have configured it with all schema's in my app. Would it be possible to 'inject' this preconfigured instance of AJV to support these kind of schema's?

When using Invoice as propType the application currently breaks, because it doesn't 'know' all required schemas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions