Default-values on schemas with a $ref field are now stored within a new reference schema which links to the original reference schema. It contains the default value and keeps a strong reference (shared_ptr) to the original reference. Fixes #209
17 lines
528 B
JSON
17 lines
528 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://example.invalid/entities.schema.json",
|
|
"title": "Entities",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [ "name" ],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"fg": { "$ref": "color.schema.json", "default": "Black" }
|
|
}
|
|
}
|
|
}
|