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
9 lines
289 B
JSON
9 lines
289 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://example.invalid/color.schema.json",
|
|
"title": "color",
|
|
"description": "X11/HTML/CSS color name as a JSON string",
|
|
"type": "string",
|
|
"enum": [ "White", "Black", "Red" ]
|
|
}
|