-
Notifications
You must be signed in to change notification settings - Fork 25
Question: Possible to exclude endpoints when converting OAS > RAML? #81
Comments
Hi @cytor! Regarding the endpoints question - after you resolve the parsed document with
Regarding amf prefixes - there's no way to avoid these as OAS 3.0 nodes |
Hi @postatum, Thank you for your reply and guidance, I managed to get it to work 👍
|
I have noticed that when generating file for Raml 0.8, the parameter descriptions are not present, but they are in Raml 1.0. Do I need to enable for Raml08 in order to see the descriptions or is it a bug? |
Hello again. Can you provide more details please? In particular - input and RAML 0.8, RAML 1.0 output. |
Hello, here it is. I'm also using the code I mentioned in my previous reply for parsing (and switched between Raml08 and Ram10 classes). As you can see below, description is missing for the parameter name def in RAML 8.0. Input
Output RAML 0.8
Output RAML 1.0
|
@cytor, sorry, I don't understand what's happening in your input - it seems to be too framework-ish. I guess you try to manually add a query param. If so, I think it should be done through Request.withQueryParameters(). Request is at |
@postatum Haha, my bad. Im using springdoc (swagger 3) for generating a OpenApi 3 doc in springboot framework. But this isn't relevant (I think). The OpenApi 3 Json output is as followed for the API endpoint users that's being converted to Raml output. As you can see in the /api/users path, the parameter def has a description but I don't see it when converting to Raml08. Input
|
@postatum I see. I will wait for it to resolve. I was able to locate the fields through the WebApi object and remove them. |
I'm closing this issue as it's inactive. Feel free to reopen it if needed. |
Library version used
0.5.0
Language library used with
Java
Description
Hi great plugin, but im having a hard time figuring out on how to achieve the following and I appreciate if you could help me out.
I would like to parse a OpenApi 3 JSON document (using Springdoc) and output a single API endpoint in a RAML file, because the system I'm using displays a swagger documentation based on a single endpoint config RAML file (see below desired output). Also is their a way to not have auto prefixed amf- variables in RAML? e.g. amf-serverDescription, amf-summary, amf-tags. I want this to be default variables (description, summary, tags).
Code
Input: Open Api 3 doc
Output: RAML 0.8
Desired RAML output
The text was updated successfully, but these errors were encountered: