Project Status Update
Circular References in AsyncAPI
Now JavaScript Parser can handle circular references that you might have in your AsyncAPI files. The current implementation fully dereferences circular references, and you cannot change this behavior. We also extended the API to help you out to deal with circular references:
- The core AsyncAPI model now contains the hasCircular() function that you can use to determine at the very beginning if a given AsyncAPI document contains some circular references or not. An example use case for it is to throw a proper error message to the user with a clear message that circular references are not supported by your tool at the moment,
- The Schema model contains isCircular() function to check if a given schema is circular, so you do not have to detect it on your own and adequately react
Have a look at this pull request for implementation details. The work is still in progress as nice features in the Parser do not mean now all the Generator’s templates will support it. Have a look at this comment if you need more details.
TypeScript Support
Since Parser 0.27 we will now always generate TypeScript types to make it much easier for TypeScript developers to use Parser in their tools.
Generator Release Candidate 6 is out
We just released another release candidate that contains a lot of improvements that we added to the Parser. Give it a try.
Generator Release Candidate 7 is out
We just released another release candidate that contains a lot of improvements that we added to the Parser. It also includes the above mentioned avro-schema-parser so it is easier for you to test it out. Give it a try.
|