raml-java-parser
raml-java-parser copied to clipboard
(deprecated) A RAML parser based on SnakeYAML written in Java
When presented with a RAML file that contains a custom (`x-{other}` type) security scheme with settings, the library is failing with the following exception: ``` java.lang.RuntimeException: Builder not found for...
When importing linkedin.raml[1] overcome below exception. Raml raml = new RamlDocumentBuilder().build(sourceUrl); [1] - https://raw.githubusercontent.com/mulesoft/api-console/master/dist/examples/linkedin.raml Caused by: java.lang.ClassCastException: org.yaml.snakeyaml.nodes.ScalarNode cannot be cast to org.yaml.snakeyaml.nodes.SequenceNode at org.raml.parser.builder.SequenceTupleBuilder.buildValue(SequenceTupleBuilder.java:29) at org.raml.parser.visitor.YamlDocumentBuilder.onScalar(YamlDocumentBuilder.java:217) at org.raml.parser.visitor.NodeVisitor.visitScalar(NodeVisitor.java:256) at...
I like the concept of having separate methods for validating and parsing RAML files. However there is at least one case where the parser also validates: If there is an...
I am having difficulties running the Java Parser. Here is my simple Java useage: `Raml baseRaml = new RamlDocumentBuilder().build("/backup/base.raml");` And here is the error I receive: ``` Exception in thread...
Parser doesn't follow [specification](https://github.com/raml-org/raml-spec/blob/master/raml-0.8.md#displayname) `If displayName is not specified, it defaults to the property's key` Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-137
Parser doesn`t provide abstraction for [nested resources](https://github.com/raml-org/raml-spec/blob/master/raml-0.8.md#resources-and-nested-resources) as it should. Basically it maps data to POJO and leaves you with handling specification on your own. Not the behavior I supposed...
Subj. There is no need to use [ParamType](https://github.com/raml-org/raml-java-parser/blob/master/src/main/java/org/raml/model/ParamType.java) JRE classes `String.class`, `Integer.class`, `Date.class`, `BigDecimal.class`, `Boolean.class`, `File.class` can be used directly. Simple backwardcompat. solution will be providing `Class ParamType#getJavaType()` for enum....
Root level base uri parameters return Map Map baseUriParams = raml.getBaseUriParameters(); Resource level base uri parameters return Map Map baseUriParams = resource.getBaseUriParameters(); Is this difference relates to multiple types for...
``` yaml #%RAML 1.0 title: Discriminator types: Person: type: object discriminator: kind # refers to the `kind` property of object `Person` properties: kind: string # contains name of the kind...
Hi, In raml we have defined set of schema which is related to particular raml, and we have some other common schema defined in "common-schema.raml". how can i define the...