--On OS/X, I can refer to a schema in another file like this
...
"car" : {
"properties" : {
"model" : {"type" : "string"},
"color" : {"$ref" : "file:Color.json"}
...
}
where Color.json looks like{"$comment" : "some comment","enum" : ["RED", "BLUE", "GREEN"]}I can use jsonschema on the command line to validate an instance.But on windows it fails if I have included the color field in my instances, succeeds otherwise.I also tried switching to {"$ref": "http://mymachine:port/Color.json#"} and running a local http server, but that failed too.
You received this message because you are subscribed to the Google Groups "jsonschema - An implementation of JSON Schema for Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonschema+...@googlegroups.com.
To post to this group, send email to jsons...@googlegroups.com.
This is what my kids call "my bad" - I deleted the post, because in fact the problem is my Color.json file had a list of currencies in it. Since RED is not a currency, it failed :-)
To unsubscribe from this group and stop receiving emails from it, send an email to jsonschema+unsubscribe@googlegroups.com.
To post to this group, send email to jsons...@googlegroups.com.
--Save our in-boxes! http://emailcharter.org