{
type: "object",
properties: {
dog: { // JSON reference
type: "object",
properties: {
$ref: {
type: "string"
}
}
}
}
}
}
{
type: "object",
properties: {
dog: { // URI
type: "string"
}
}
}
{
"type": "object",
"properties": {
"id": { "type": "string" },
"foo": { "$ref": "http://example.com/schema/foo" }
"bar": { "$ref": "http://example.com/schema/bar" }
}
}
{
"type": "object",
"properties": {
"value": { "type": "string" }
}
}
{
"type": "object",
"properties": {
"value": { "type": "integer" }
}
}
{
"id": "asdf1234",
"foo": { "$ref": "http://example.com/foo/1" },
"bar": { "$ref": "http://example.com/bar/1" },
}
{
"value": "foo1"
}
{
"value": 9876
}
{
"id": "asdf1234",
"foo": { "value": "foo1" },
"bar": { "value": 9876 },
}
{
"type": "object",
"properties": {
"id": { "type": "string" },
"foo": {
"type": "object",
"properties": {
"value": { "type": "string" }
}
},
"bar": {
"type": "object",
"properties": {
"value": { "type": "integer" }
}
}
}
}
--
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/LEvNPAI5TJc/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.
{
"type": "object",
"properties": {
"id": { "type": "string" },
"foo": { "type": "integer" },
"bar": { "type": "integer" }
},
"links": [
{
"rel": "expand",
"href": "/foo/{foo}"
},
{
"rel": "expand",
"href": "/bar/{bar}"
}
]
}
{
"id": "asdf1234",
"foo": 1,
"bar": 1
}