union or subset of enums
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022
02:03 AM
07-27-2022
02:03 AM
union or subset of enums
Is it possible to take union of two enums or subset of enums in swagger defination schemas?
Labels:
- Labels:
-
Swagger Codegen
-
Swagger Editor
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022
11:40 PM
08-09-2022
11:40 PM
This answer might be of help to you: https://community.smartbear.com/t5/SwaggerHub-Questions/quot-Extending-quot-objects-using-quot-allOf...
Using allOf it is possible to make a union (apparently because of a bug in Swagger). Be aware that values that are in both sets will appear twice in the resulting set!
