Skip to content

ApiDOM defines parsers into the ApiDOM AST, does it provide a tool to go the other way? #1098

Answered by char0n
EricCrosson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @EricCrosson,

I can see there are numerous parsers defined that take code from OpenAPI, RAML, API Blueprint, etc, and parse into the ApiDOM AST (tree-sitter nation!) but once my data is parsed into that AST, I'm confused on what options I have to work with the data.

Yes I can understand the confusion. We're still missing big chunks of our documentation, one of them being AST documentation. I've created an issue to track the lack of the documentation here: #1103. The issue contains links that might help understanding the underlying AST. Another options for working with AST is querying it: https://github.com/swagger-api/apidom/tree/main/packages/apidom-core#traversal

In my use case, I…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EricCrosson
Comment options

Answer selected by EricCrosson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested ApiDOM
2 participants