OnPositive / aml

Java Tools for RAML and a bit more
Apache License 2.0
7 stars 4 forks source link

raml to jaxrs fails to generate sources with raml1.0 #22

Open javavenkats5 opened 7 years ago

javavenkats5 commented 7 years ago

Hi, I am using below plug to generate resources from raml1.0 document. But its failng to recognize some of the basic elements as per raml1.0 spec.

com.onpositive.aml
            <artifactId>raml-jaxrs-maven-plugin</artifactId>
            <version>1.3.8</version>

Here is the errors please help me.

does not seem to be RAML root file -skipped(first line should start from #%RAML ${raml version number} Unexpected key 'uses' Unexpected key 'allowedTargets'. Unexpected key 'get?'

Here is my raml sample. all the dependant raml files are in place. Please advice me if there is any stable version of raml to jaxrs for raml 1.0?

%RAML 1.0

title: Employee version: v0.1 description: !include docs/Description.md baseUri: https://www.myhost.com/v0

uses: books: types/books.raml annotationTypes: countrySpecific: !include ../commons-v0/annotations/country.raml

petrochenko-pavel-a commented 7 years ago

Hi @javavenkats5 as well as I see error message, java RAML parser was not able to parse your files by some reason. Unfortunately I can not say much more without seeing books.raml and country.raml.

I know that the guys at mulesoft are making a good progress in https://github.com/mulesoft-labs/raml-for-jax-rs/tree/release/2.0.0 branch, but they does not reach GA yet.

On my side, I am using this code in my experiments and willing to fix issues, but I do not have resources to move my implementation forward at this moment.

Regards, Pavel