-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot retrieve RAML annotations applied to Library #779
Comments
A "proper" solution might be adding a |
Hi @kdubb . |
I'm willing to contribute a PR if you can point me in the right direction. We're moving from the old RAML parser and this is a blocking issue for us. |
@looseale Also, it's worth noting that although the 3.0 OpenAPI spec only allow "extensions" on certain elements... all the notable parser implementations seem to allow extension nearly everywhere; specifically on document root and schema items. |
@looseale Any thoughts on when this might be fixed or how I can help get this started? |
Your issue may already be reported! Please search on Github issues before creating one.
I'm submitting a ...
What is the current behavior?
RAML
Library
level annotations are lost or inaccessible after parsing.API
's add the annotation(s) to the root encoded object inEncodesModel.encode
.Given the following RAML library example...
There is no way to retrieve the
javaModelPackage
annotation. On anAPI
(akaDocument
) there's andEncodesModel
trait and the annotation is applied to the root of the encoded model. With aLibrary
there is no way to retrieve the top level annotation.Note that
generator.raml
just defines some annotations for generating code.It should be possible to retrieve the annotations from
Library
&Fragment
modules as well.What is the motivation/use case for changing the behavior? (for feature requests)
Please tell us about your environment:
Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, Gitter, etc)
The text was updated successfully, but these errors were encountered: