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
Given the following property schema in a response body:
grantTypes:
description: |
List of grant types supported for this client.
As per RFC6749, the clientCredentials grant can only be used by confidential clients.
Clients SHOULD always only allow Authorization Code with PKCE.
type: array
minItems: 1
maxItems: 2
uniqueItems: true
items:
type: string
enum:
- authorizationCodePKCE
- clientCredentials
minLength: 0
maxLength: 100
example: [authorizationCodePKCE, clientCredentials]
This results in a postman schema test where the min and max items are 1
"grantTypes":{"description":"List of grant types supported for this client.\nAs per RFC6749, the clientCredentials grant can only be used by confidential clients.\nClients SHOULD always only allow Authorization Code with PKCE.\n","type":"array","minItems":1,"maxItems":1,"uniqueItems":true,"items":{"type":"string","enum":["authorizationCodePKCE","clientCredentials"],"minLength":0,"maxLength":100},"example":["authorizationCodePKCE","clientCredentials"]}
We also noted from trying random numbers setting min items to 0 and maxItems to 2
The generated postman schema check dropped maxItems all together.
Happy to provide a full OpenAPI example for testing on request
Thanks
The text was updated successfully, but these errors were encountered:
I am also seeing strange behavior on maxItems. My OAS does not have any maxItems specified in it but portman injected one in one of the schemas for my endpoints. ("maxItems":1)
For now I will probably do a global overwrite (maybe rawReplacement) of it, but would be better if this were fixed.
Given the following property schema in a response body:
This results in a postman schema test where the min and max items are 1
We also noted from trying random numbers setting min items to 0 and maxItems to 2
The generated postman schema check dropped maxItems all together.
Happy to provide a full OpenAPI example for testing on request
Thanks
The text was updated successfully, but these errors were encountered: