Bump!
On Friday, 14 November 2014 16:06:23 UTC-8, Amit Ruparel wrote:Hi all,I'm aware the if you want to define an Array of custom JSON objects, you can do it this way:{"$schema": "http://json-schema.org/draft-04/schema#","title": "Product","type": "object","properties": {"id": {"description": "The unique identifier for a product","type": "integer"},"tags": {"type": "array","items": {"$ref": "#/definitions/tagObj"}}}"definitions" : {"tagObj" : {"properties" : {"tagInfo" : { "type" : "string" },"tagInfo2" : { "type" : "string" }}}}}But instead of having an explicit definition and a reference to it, can you directly define the custom JSON object inline this way?:{"$schema": "http://json-schema.org/draft-04/schema#","title": "Product","type": "object","properties": {"id": {"description": "The unique identifier for a product","type": "integer"},"tags": {"type": "array","items": {"type": "object","properties": {"tagInfo" : { "type" : "string" },"tagInfo2" : { "type" : "string" }}}}}}Thanks!--
You received this message because you are subscribed to the Google Groups "JSON Schema" group.
To unsubscribe from this group and stop receiving emails from it, send an email to json-schema...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No. I think I didn't find any such examples, so just wanted to double check.Thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "JSON Schema" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/json-schema/bm_rfLd4U1I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to json-schema...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Amit Ruparel
Graduate Student - MS, Computer Science
C O L U M B I A U N I V E R S I T Y