raml-java-parser
raml-java-parser copied to clipboard
(deprecated) A RAML parser based on SnakeYAML written in Java
When I import a library in my raml file using the "uses" tag: ```raml #%RAML 1.0 Library types: CommonType: type: "object" properties: name: type: "string" ``` ```raml ... uses: commonTypes:...
From the API, is there a way to get to the FacetNode information ? I can get to the facet declaration, but I can't seem to be able to reach...
``` types: User: type: object properties: firstname: string lastname: string age: number /xmlschema: post: body: application/xml: type: User responses: 200: body: application/xml: type: Files ``` request: curl -X POST -H...
``` types: User: type: object properties: firstname: string lastname: string age: number /types-test: post: body: application/json: type: User responses: 200: ~ ``` curl -X POST -H "Content-type: application/json" -d ''...
The RAML spec says, that when subclassing (suptyping), it is possible to override property definitions by narrowing them (e.g. adding facets or changing type - Number to Integer, etc.). There...
The parsing of the following file: ``` #%RAML 1.0 NamedExample - title: Lalala ``` Throws this exception: ``` java.lang.NumberFormatException: For input string: "mediaType" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at...
I'm trying to create a POJO from response type of a resource. From method().getBody().get(0), I can get instance of TypeDeclaration, on which when I invoke toJsonSchema() method, I get the...
Tested with parser version `1.0.11` For the given raml file ```yaml #%RAML 1.0 title: "Invalid pattern" version: "1.0.0" protocols: - "HTTP" types: stringType: type: string pattern: "\\X" example: "abc" ```...
Parser failing parse this 'name' element from response. Any help please. I think it as per RAML1.0 spec. ERROR:Unexpected key 'name'. Options are : "description" or "displayName" or "strict" or...
I got this message trying to parse my API definition. ``` { ErrorNode [Custom facet 'my-facet' cannot be set as it is already defined by object.] } ``` Here are...