raml-java-parser
raml-java-parser copied to clipboard
It would be nice, if RAML parser contained information about source lines
It would be nice, if RAML parser contained information about source locations of model elements.
Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-155
the Raml object itself does not have information about source lines, but if you have a reference to the builder you can access SnakeYaml parser output that contains the information:
org.raml.parser.visitor.YamlDocumentBuilder#getRootNode
Actually this is not enough, because ideally we would like to have a mapping of RAML model objects on source lines