Open jasonoverby opened 5 years ago
Hi, I am facing the same limitations as OP. I really need the oneOf
selection from OpenAPI and thought this can be solved with joi
's xor()
method. Since this issues was opened quite some time ago are there any alternatives to get this working or is it still in development?
Thanks for your efforts.
@isastim i'm not aware of anyone working to fix this issue. is this something you would be willing to do? if not, maybe some other member of the community can submit a fix.
@robmcguinness Thank's for your quick reply. That's very unfortunate this hasn't been implemented yet. I decided to pass on this feature for now. I think I still don't have the capacity to implement and contribute this feature since I am not a much experienced programmer.
Context
What are you trying to achieve or the steps to reproduce?
I am hoping to provide example request payload values in my swagger where one or the other value is required but not both.
Validation:
What result did you get?
Both
b
andc
were included in the example request payload.What did you expect?
One or the other would be included, but not both.