salesking / json_schema_tools

Tools for building and handling a JSON Schema powered API's
27 stars 9 forks source link

Not all $refs get expanded when reading schema files. #11

Open razielgn opened 10 years ago

razielgn commented 10 years ago

You can try it with schemas from https://github.com/fidor/fidor_schema.

schorsch commented 10 years ago

thanks, seems to be related to the recursion int the nested folder structure: https://github.com/fidor/fidor_schema/blob/master/schema/v1.0/lists/accounts.json#L10

Taking a look at it. Thanks

schorsch commented 10 years ago

pushed an update, but there are now problems with circular dependencies:

When parsing this: https://github.com/fidor/fidor_schema/blob/master/schema/v1.0/lists/accounts.json#L10 => requires account.json https://github.com/fidor/fidor_schema/blob/master/schema/v1.0/account.json#L93 =>refs accounts.json

also opened a ticket over there: https://github.com/fidor/fidor_schema/issues/4