↧
Answer by Jason Desrosiers for How to use existing json schema for properties?
$ref to the rescue.{"$schema": "http://json-schema.org/draft-04/schema#","id": "http://example.com/scheme/product","type": "object","title": "Product","description": "An explanation about the puropose...
View ArticleAnswer by jruizaranguren for How to use existing json schema for properties?
Just use $ref. Providing that your variant schema is defined under the node definitions in the same file, it would be like this:"variant": {"$ref": "#/definitions/variant"}
View ArticleHow to use existing json schema for properties?
My product json is:{"id": 123,"variant":{"id":123,"name":"variant 1" }}I have json schema for Variant object and I need to create schema for Product object. How can I use existing variant schema in the...
View Article