raml-java-parser
raml-java-parser copied to clipboard
(deprecated) A RAML parser based on SnakeYAML written in Java
Consider this: ``` #%RAML 0.8 title: BOM bombs version: v1 schemas: - NotNice: !include NotASchema.json /test: get: responses: 200: body: application/json: schema: NotNice ``` The binary view of NotASchema.json is...
I have the following layout (I am using the test files, renamed include-sequence.yaml to *.raml):  I've added an empty description in sequence-trait.yaml: ``` paged: queryParameters: offset: description: type: integer...
We are seeing a behavior where we put traits in single file inline. When I am calling the dump using emitter it is emitting empty traits with just display name...
Currently, if a json schema is included that uses the default "$schema" value of "http://json-schema.org/schema#", then the SchemaRule.java assumes draft v3. It has been a long time since v4 is...
Hi, guys. Some places in the parser throw exceptions which do not provide information about code position. For example: ``` java.lang.ClassCastException: org.yaml.snakeyaml.nodes.ScalarNode cannot be cast to org.yaml.snakeyaml.nodes.MappingNode at org.raml.parser.visitor.TemplateResolver.loopTemplateSequence(TemplateResolver.java:145) at...
This method has two bugs. Issue 1: It returns URI parameters for the current resources and only the immediately parent. This is contrary to the javadoc which says "all URI...
(affects version 0.8.12) I tried parsing two multi-file definitions with the same instance of `RamlDocumentBuilder` and the second failed to resolve includes. ``` java RamlDocumentBuilder builder = new RamlDocumentBuilder(); //...
Try parsing https://github.com/mulesoft/raml-tutorial-200/blob/master/jukebox-api.raml using latest code. it fails with following exception Exception in thread "main" java.lang.RuntimeException: resource not found: jukebox-include-song.schema at org.raml.parser.visitor.YamlDocumentBuilder.onCustomTagError(YamlDocumentBuilder.java:307) at org.raml.parser.tagresolver.IncludeResolver.resolve(IncludeResolver.java:68) at org.raml.parser.visitor.NodeVisitor.resolveTag(NodeVisitor.java:162) at org.raml.parser.visitor.NodeVisitor.doVisitMappingNode(NodeVisitor.java:139) at org.raml.parser.visitor.NodeVisitor.visitMappingNode(NodeVisitor.java:86)...
**Issue:** Validation fails for RAML documents that contain surrogate chars (e.g. **'𠿿'**). **Investigation:** Raml-java-parser uses the 'org.yaml.snakeyaml.reader.StreamReader.checkPrintable()' method for validation of RAML documents. This method works with chars from a...
According to the RAML spec, and validated by RAML team and this [issue](https://github.com/raml-org/raml-spec/issues/163), _version_ is a reserved URI Parameter and it should be replaced by the RAML root version as...