Open Sebaroni opened 3 years ago
I 2nd this feature request. We go through great pains designing our APIs using OpenAPI YAML format and then generating the Postman collection and documentation off that. In the API spec our schema specifications contains descriptions but all that is shown in the Postman API document is the example request body.
We are using Postman specifically for its documentation capabilities and the fact that the documentation is always in sync with the API spec and collection. Therefore, to expect that the token information should be captured in the description of the endpoint makes no sense and is dangerous. It is too easy for the documentation to go out of sync with the schemas in the spec and it is too easy to make typing mistakes.
What is needed is that the schema is translated into the documentation. This should be quite easy to do since the schema is structured. For example, for the schema pasted below I would like to see something in the documenation that shows at least:
Token | Required | Type | Description |
---|---|---|---|
id_token | Yes | String | The id_token provided in the authentication call. |
req_session_id | No | String | Global unique identifier for the session used. |
req_device_id | No | String | The unique identifier for the device used in the transaction. |
req_transaction_id | Yes | String | The unique transaction of the requester. |
req_date_time | No | String | The date time stamp of the request. |
requestBody:
description: 'Do an electricity meter lookup'
content:
application/json:
schema:
title: Lookup utility meter number detail
description: Reguest the detail of a meter number
type: object
required:
- id_token
- req_transaction_id
- parameters
properties:
id_token:
description: The id_token provided in the authentication call.
type: string
req_session_id:
description: Global unique identifier for the session used.
type: string
req_device_id:
description: The unique identifier for the device used in the transaction.
type: string
maxLength: 255
req_transaction_id:
description: The unique transaction of the requester.
type: string
maxLength: 255
req_date_time:
description: The date time stamp of the request.
type: string
format: date-time
Thank you for your request. This is something we've been very interested in as well, and your comment helps validate this need.
I appreciate your insight, and encourage you to keep those ideas coming!
Not sure whether I have to log a new feature request but this is very closely related. I noticed that when I update the description field of the Openapi spec doc (highest level) I noticed that the validation does not even pick up that anything changed and therfore the change is never incorporated into the collection document at all. It has to be manually updated into the collection document.
On Wed, Aug 25, 2021, 20:38 Steven Baxter @.***> wrote:
Thank you for your request. This is something we've been very interested in as well, and your comment helps validate this need.
I appreciate your insight, and encourage you to keep those ideas coming!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/postmanlabs/postman-app-support/issues/10231#issuecomment-905779311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASWJCTVWTHMUBGW7KYLGYR3T6U2ARANCNFSM5CM2JZ5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
-- https://www.finclude.net https://www.finclude.net/ | e: @. @.>
This is really missing in postman. When are you planning to implement? Our company has signed up for your paid plan, but unfortunately, due to the lack of a normal description of the body in documentation, we are forced to use other solutions like "redoc" for documentation
@gerhardvr-finclude @Sebaroni @kwolfy Could you guys briefly explain how your team expects to use documentation to develop and manage your internal and public APIs (if applicable) - from Open API definition to eventual API consumption. This will really help us understand your team's workflows better.
We are currently designing a solution to this problem and would like validate it. Thanks for your inputs as always.
@Raja-Simha If you look at what Stoplight (https://elements-demo.stoplight.io/#/operations/get-todos), Redoc (http://redocly.github.io/redoc/#operation/getUserByName) and Readme (https://developer.pagerduty.com/api-reference/b3A6Mjc0ODExMw-get-raw-data-single-incident) are doing, then it is challenging that Postman is not able to expose the datatype and description automatically in the Postman documentation (based on the OpenAPI spec) for the end consumer and keep it up-to-date, when changes happen to the specification.
Similar to @kwolfy we are, as paying customers, looking into stopping utilizing Postman for documentation because of these shortcomings and lack of improvements in the documentation component of Postman in general.
@kago-dk and @gerhardvr-finclude thanks for the detailed explanations. We are planning to provide a solution to this in the short term.
Hi, @Raja-Simha . Sorry it took me a while to reply: basically what @kago-dk and @gerhardvr-finclude said above: the development team generates OAS3 files as part of the API development process and these files are the source of truth, in a way, so I want to port these files to Postman to automatically generate the documentation for our public APIs. However, Postman does not automatically render body-parameter data types and descriptions in the documentation section, which is something Readme and Redoc already do. Instead, I would have to write the tables with request body parameter descriptions manually using markdown in the documentation section, which is not ideal, since it's a cumbersome process that could introduce errors and inaccuracies.
@Raja-Simha What is the latest status on this?
@Raja-Simha Up on this one as it is really required. Our workflow is very similar to @Sebaroni 's one. Thank you for your update
Hey @Sebaroni @gerhardvr-finclude @kago-dk @tainmar Firstly, thanks again for the detailed description and reaching out to us.
Secondly, I am happy to let you guys know that you can now generate documentation from your OpenAPI 3.0 schema. You can try out the feature as explained here.
As we make further improvements, we'd love your feedback on API schema documentation. Do share your thoughts with us once you have tried it out. If you'd like to connect and discuss over a call, feel free to schedule one here.
Thank you @Raja-Simha,
Unfortunately, we are getting an error because the objects we manipulate are too deep (12 levels) and you are limiting to 8 levels.
<Error: Too many levels of nesting to fake this schema>
Hi,
I’m Shashank, a Product Manager at Postman. We’re exploring ideas for adding the ability to document request/response bodies, parameters, and more. This will allow you to provide additional details such as description, possible values, formats etc. for your JSON bodies and parameters as well.
This will also enhance the request sending experience, where you can select the possible value using a drop down. Also provide validation on the values the consumers are trying to send.
Here is a recording of what the feature might look like. You can read more about the feature here.
This is in its early stages, and we’re seeking early adopters to try it out and provide feedback. If you’re interested, please reach out to me at shashank.awasthi@postman.com or schedule a call using this link.
@tainmar @Sebaroni @kago-dk @gerhardvr-finclude
Is there an existing request for this feature?
Is your feature request related to a problem?
Hello! I’m porting OAS3 specs to Postman collections, but I don’t see the tables with the request body parameter descriptions in the documentation section. I was hoping Postman would render those automatically.
Those tables are nested under requestBody in the OAS yaml file.
For example: `requestBody: description: This API is used to ... content: application/json: schema: minItems: 1 uniqueItems: true type: array items: required:
Describe the solution you'd like
I'd like Postman to automatically render the tables with POST body parameter descriptions.
Describe alternatives you've considered
I'd like to avoid having to enter them manually using markdown.
Additional context
No response