@utilize/json-schema
Version:
Utilities for working with JSON Schema.
29 lines (28 loc) • 652 B
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"luarc": {
"$ref": "https://www.schemastore.org/luaurc.json"
},
"internalRefOnly": { "$ref": "#/definitions/internalEnum" },
"internalRefWithDefault": {
"$ref": "#/definitions/internalEnum",
"default": "value1"
},
"externalRefOnly": { "$ref": "./EnumSchema.json" },
"externalRefWithDefault": {
"$ref": "./EnumSchema.json",
"default": "value1"
},
"externalRefWithOwnRefs": {
"$ref": "./WithLocalRefs.json"
}
},
"definitions": {
"internalEnum": {
"type": "string",
"enum": ["value1", "value2", "value3"]
}
}
}