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
Hi,
RapiPdf is very good, and would really fit my simple need, but I have one showstopper.
Just imagine a sligthly modified petstore example with just an added operation,
POST /store/backOrder, the same as POST /store/order, with the same input, but a supposedly different business logic.
(#/definitions/Order) petstore_plus_backorder.txt
if you do that, and this would happen a lot in real life, reusing the same schema for input on different operations,
then in the PDF, the two request sections content just disappear, only leaving the REQUEST title right before RESPONSE
To retrieve the desired output, the only solution I found is to duplicate the Order definition with another name.
which beats the purpose of openApi definitions reusability.
In our case, we may have for instance a definition called UserTokenInput, used in 15 different operations, this would mean we'd have to duplicate it from UserTokenInput1 to UserTokenInput15 ... and amend each operation accordingly.
RapiDoc does not have the same issue. It displays the 2 requests content correctly.
Can this be solved easily ?
Best regards,
David
The text was updated successfully, but these errors were encountered:
akamarvin
changed the title
when 2 operations have the same input schema definitions, the requests in the output are not displayed
when 2 operations have the same input schema definitions, the requests in the PDF output are not displayed
Nov 16, 2020
Hi,
RapiPdf is very good, and would really fit my simple need, but I have one showstopper.
Just imagine a sligthly modified petstore example with just an added operation,
POST /store/backOrder, the same as POST /store/order, with the same input, but a supposedly different business logic.
(#/definitions/Order)
petstore_plus_backorder.txt
if you do that, and this would happen a lot in real life, reusing the same schema for input on different operations,
then in the PDF, the two request sections content just disappear, only leaving the REQUEST title right before RESPONSE
To retrieve the desired output, the only solution I found is to duplicate the Order definition with another name.
which beats the purpose of openApi definitions reusability.
In our case, we may have for instance a definition called UserTokenInput, used in 15 different operations, this would mean we'd have to duplicate it from UserTokenInput1 to UserTokenInput15 ... and amend each operation accordingly.
RapiDoc does not have the same issue. It displays the 2 requests content correctly.
Can this be solved easily ?
Best regards,
David
The text was updated successfully, but these errors were encountered: