enum string type field in formData with required=true always send the first value.
See original GitHub issueQ&A (please complete the following information)
- OS: macOS
- Browser: Chrome
- Version: 63
- Method of installation: docker
- Swagger-UI version: latest from docker hub: 2376859c51c8
- Swagger/OpenAPI version: Swagger 2.0
Content & configuration
formData field with type:string, required: true and enum fields, whatever you choose, it always send the first enum value.
Example Swagger/OpenAPI definition:
add one field to the official pet store example, whatever you choose, it will always send hello.
- in: formData
name: type
type: string
required: true
enum:
- hello
- world
Expected behavior
swagger-ui will send the enum value I choose instead of the first enum value.
Screenshots
I’ve searched in existing issue but didn’t find any useful information. thank you!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
node.js - How to Post Enum data in Postman with form-data type
I've tried searching Google but the answer is irrelevant, what I want to ask is how to Post enum data in Postman.
Read more >Validation - react-jsonschema-form documentation
When the form is submitted, the form data is validated to conform to the given JSON schema;. As of version 5, as a...
Read more >OpenAPI Specification
Fixed Fields. Field Name, Type, Description. swagger, string, Required. Specifies the Swagger Specification version being used.
Read more >Upload Field - Alpaca Forms
List of disallowed values for the property. enum, array, List of specific values for this property. format, string, Data format of the property....
Read more >Express Tutorial Part 3: Using a Database (with Mongoose)
First you require() mongoose, then use the Schema constructor to ... Field name and type as a key-value pair (i.e. as done with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SongJoey it’s fixed in v3.17.4.
Thanks. @bestmike007