You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Hello,
The generated Java code for RAML types having nested objects does not seem to be done properly.
We can use one of the existing RAML files as an example: /raml-to-jaxrs/jaxrs-code-generator/src/test/resources/org/raml/jaxrs/generator/v10/extendObject.raml
which generates two files:
ObjectOne and ObjectOneImpl. The former looks like the following:
The problem here is that NameTypeImpl.class cannot be resolved.
I have been playing around a bit with the SimpleTypeGenerator and it looks like we'll need to pass in the notion of a surrounding class, perhaps adding it to the TypeContext. Not sure what the best approach is here though.
The text was updated successfully, but these errors were encountered:
true. aside from composition, I can't think of any other way to deal with unions.
Once we get this (actually the other ticket #262) to work, I think unions should work nicely.
Not sure if it's worth checking into using generics as a way of composition.
Hello,
The generated Java code for RAML types having nested objects does not seem to be done properly.
We can use one of the existing RAML files as an example: /raml-to-jaxrs/jaxrs-code-generator/src/test/resources/org/raml/jaxrs/generator/v10/extendObject.raml
which generates two files:
ObjectOne and ObjectOneImpl. The former looks like the following:
The problem here is that NameTypeImpl.class cannot be resolved.
I have been playing around a bit with the SimpleTypeGenerator and it looks like we'll need to pass in the notion of a surrounding class, perhaps adding it to the TypeContext. Not sure what the best approach is here though.
The text was updated successfully, but these errors were encountered: