How to pass value to parameter which has union type? #10656
Unanswered
paperchalice
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose following description:
Details
{ "openapi": "3.1.1", "info": { "title": "Sample | v1", "version": "1.0.0" }, "servers": [ { "url": "http://localhost:5000/" } ], "paths": { "/{id}/item": { "get": { "tags": [ "Sample" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "string", "integer" ], "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } } } }I can't pass value to
idand swagger ui and it showsFor 'id': Required field is not provided.Beta Was this translation helpful? Give feedback.
All reactions