Open k98kurz opened 2 years ago
Hi, I just ran into this issue and I had a similar problem but I don't know if this is your case too.
You're talking about setting example to 1 but have you considered setting the minimum value in the schema definition?
Here's mine in YAML:
parameters:
- name: id
required: true
in: path
description: ID of the user
schema:
type: integer
format: int32
minimum: 1
Take care!
Is there an existing issue for this?
Describe the Issue
When Documentation is generated from or synchronized to an OenAPI Specification document, integer path variables and schema attributes generate negative values like "-10968727" despite having examples like "1". Request bodies also have incorrect indentation upon generation, and the validation tool labels these as issues immediately after generation.
Additionally, if Documentation is generated from an OAS with the "Request parameter generation" and "Response parameter generation" options set to "Schema", running validation immediately thereafter results in issues for every such value, and these are then turned into the above-referenced negative values that appear to be coming from nowhere.
Steps To Reproduce
Screenshots or Videos
Operating System
Linux
Postman Version
9.19.0
Postman Platform
Postman App
Additional Context?
No response