Hi,
I was very excited to find this library, it looks like exactly what we need!
However, there seems to be a bug in how $ref is being processed. Basically, the property name is being used as the class name, rather than the $ref value.
Below are the two little schemas that make up my test case, I can also add the generated code, but you can try it for yourself.
Anyone knows how to submit an issue? All I found was this mailing list.
Thanks for any help!
OIia
{
"title" : "House",
"id" : "http://testtypes.com/house.json",
"description" : "house type",
"type" : "object",
"properties" : {
"cat" : {
"$ref" : "pet.json"
},
"dog" : {
"$ref" : "pet.json"
}
},
"$schema": "http://json-schema.org/draft-03/schema#"
}
{
"title" : "Pet",
"id" : "http://testtypes.com/pet.json",
"description" : " Pet",
"type" : "object",
"properties" : {
"name" : {
"type" : "string",
"required" : false
},
"age" : {
"type" : "integer",
"minimum" : 1,
"maximum" : 12,
"required" : false
}
},
"required" : true,
"$schema": "http://json-schema.org/draft-03/schema#"
}