openapi-to-postman icon indicating copy to clipboard operation
openapi-to-postman copied to clipboard

OpenAPI import not respecting Read-Only Properties

Open keth opened this issue 6 years ago • 5 comments

For some endpoints, I have the same schema for GET and POST and use the property readOnly: true to determine if POST property should be shown or not. See readOnly https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md

It looks like Postman is not respecting the readOnly property and is displaying all properties in the schema.

keth avatar Jul 19 '19 19:07 keth

@keth Thanks for reporting the issue. Can you provide the spec file from which you are getting this error?

Dhroov7 avatar Aug 05 '19 09:08 Dhroov7

Resolved in 7.7.0!

Dhroov7 avatar Sep 18 '19 19:09 Dhroov7

I see this in 10.14.4. readOnly properties show up in POST request body.

asafd1 avatar May 30 '23 16:05 asafd1

Also still seeing this in 11.1.25

markross avatar Jun 13 '24 16:06 markross

@asafd1 @markross Thanks for reporting the issue! I was able to reproduce the same. We'll be working on the fix and update here once we have fix for this.

VShingala avatar Jun 14 '24 13:06 VShingala

@asafd1 @markross We've added support for readOnly and writeOnly properties with latest version of Postman App v11.10.0. Do give it a try and let us know if you face any further issues with the Import flow for such OpenAPI definitions.

VShingala avatar Aug 28 '24 05:08 VShingala