-
-
Notifications
You must be signed in to change notification settings - Fork 351
Open
@moander
Description
A schema is either an object or a boolean. What if there was a third option (string) that is a shortcut for $ref
?
So instead of models like this
{ "$id": "https://example.com/schemas/my-model.json", "properties": { "foo": { "$ref": "shared-type1.json" }, "bar": { "$ref": "shared-type2.json" }, "jau":{ "type": "string" }, "hei":{ "type": "string" } } }
You get
{ "$id": "https://example.com/schemas/my-model.json", "properties": { "foo": "shared-type1.json", "bar": "shared-type2.json", "jau": "#string", "hei": "#string" }, }
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Discussion