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
Expected Behavior: parameter examples display as help text below the parameter field in the request pane and are used to populate request fields when the 'fill example' button is clicked.
Actual Behavior:
array examples on array parameters pre-populate the field on load.
boolean true examples pre-populate the field on load.
boolean false examples do not appear as help text below the field.
Reproduction:
{
"openapi": "3.0.2",
"info": {
"title": "Minimum Reproduction"
},
"paths": {
"/path": {
"get": {
"operationId": "get.path",
"parameters": [
{
"name": "param1",
"in": "query",
"description": "string examples on array params operate as expected.",
"required": false,
"style": "form",
"explode": true,
"schema": { "type": "array", "items": { "type": "string" } },
"example": "example"
},
{
"name": "param2",
"in": "query",
"description": "array examples on array params un-expectedly pre-populate the field with the given value(s).",
"required": false,
"style": "form",
"explode": true,
"schema": { "type": "array", "items": { "type": "string" } },
"example": ["example1", "example2"]
},
{
"name": "param3",
"in": "query",
"description": "boolean `true` examples un-expectedly pre-populate the field as well.",
"required": false,
"style": "form",
"explode": true,
"schema": { "type": "boolean" },
"example": true
},
{
"name": "param4",
"in": "query",
"description": "boolean `false` examples don't pre-populate the field, but they fail to render as an example.",
"required": false,
"style": "form",
"explode": true,
"schema": { "type": "boolean" },
"example": false
}
]
}
}
}
}
The text was updated successfully, but these errors were encountered:
Expected Behavior: parameter examples display as help text below the parameter field in the request pane and are used to populate request fields when the 'fill example' button is clicked.
Actual Behavior:
true
examples pre-populate the field on load.false
examples do not appear as help text below the field.Reproduction:
The text was updated successfully, but these errors were encountered: