-
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
Example on URI parameter with included type missing when resolved #1163
Comments
Same is true for EDITING_PIPELINE(). COMPATIBILITY_PIPELINE() does include the examples and descriptions but with a nested type rather than flattened. Is this intentional? |
Hi @gb-arm! I've analyzed the behavior you mention and have some clarifications:
We're not sure if the case of ONLY having If the issue is fixed, it'll be in AMF version 5.x.x, so if you're using v4 consider upgrading in the meantime. NOTE:
with the inline form Hope that helps! |
Hi @gb-arm! issue APIMF-3503 has been solved and the fix will be available in the next AMF release version 5.0.3, releasing next week. Thank you! |
Take a RAML file with these URI parameters:
main.raml
type.raml
When resolved through the default pipeline, the first and third include the example string and the second doesn't. The displayName does get resolved from the underlying type, but the example (and also any annotations if present, not shown in this minimal example) don't get included. The presence of the overriding description at the point of usage of the type seems to prevent the inclusion of the example from the type. The absence of the description seems to prevent it being present in the output even though it is on the type.
Resolved output:
Resolution code:
The text was updated successfully, but these errors were encountered: