danielgtaylor / eidolon

Generate JSON or JSON Schema from Refract & MSON data structures
MIT License
6 stars 1 forks source link

Handle circular references #9

Closed danielgtaylor closed 8 years ago

danielgtaylor commented 8 years ago

First pass at handling circular references when dereferencing, generating examples, and generating schemas. The examples and schemas could use more work but nothing infinitely loops anymore.

This adds a new origin link relation with href set to http://refract.link/circular-reference/ so you can detect circular refs. Please let me know if you need any other info attached to the elements!

cc @Baggz, feel free to merge & release if this looks good.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.5%) to 99.142% when pulling b427216b6af539f69162aff50ec65ea23eaedf3c on daniel/circular-refs into 7563528c8c0e5e6269afce9ce0e192cb701b6654 on master.