Ask a Question

union or subset of enums

akashkumar
New Member

union or subset of enums

Is it possible to take union of two enums or subset of enums in swagger defination schemas?

1 REPLY 1
HenrikHL
Contributor

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!

cancel
Showing results for 
Search instead for 
Did you mean: