Skip to content

There should be a way to include a common base into a document #118

@matthewfl

Description

@matthewfl

Currently I have added something to pre-filter the json when it is loaded for a $include, that will load in another file and merge the object that the $include is in and the file that it is referencing.

Example:

base.json

{
  "first": { . . . }
}

element.json

{
    "type": "object",
    "properties": {
        "$include": "base.json",
        "second": { . . . }
    }
}

will result in a schema

{
    "type": "object",
    "properties": {
        "first": { . . . },
        "second": { . . . }
    }
}

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