Open jules27 opened 10 months ago
Any update on this one, @postman-staff? Is it on the roadmap? I also have this problem.
bump @postman-staff
Same problem with writeOnly properties.
up @postman-staff
Same issues here.
up @postman-staff I'm also facing the same issue. Swagger UI correctly interprets readOnly schema properties in OpenApi definitions, but Postman does not.
Is there an existing issue for this?
Describe the Issue
I have a YAML file that contains definitions of schemas and endpoints for OpenAPI version 3.0.2. When I import the YAML file into Postman as a Collection, I see the request body contain parameters that are marked as
readOnly
(and thus should not be sent as part of the request).Steps To Reproduce
requestBody
pointing to aschema
.readOnly
and some not.readOnly
attributes.Screenshots or Videos
This is the YAML file I created and imported into my Postman Collection:
This is what I see in the request body tab on Postman:
Text version of the screenshot:
Note that in the request body,
created_at
andcampaign_id
are marked asreadOnly
in the YAML file and shouldn't be sent as part of the request.Operating System
macOS
Postman Version
10.17.2
Postman Platform
Both
User Account Type
Signed In User
Additional Context?
I tested the YAML file in the Swagger Editor, which does exclude the
readOnly
fields in the request body:Text version of the screenshot above: