Quantcast
Channel: How to use existing json schema for properties? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

How 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
Browsing latest articles
Browse All 3 View Live


Latest Images