Anyof , specific required fields #3848
-
Hello , While defining my schema for JSON Document , using typespec , I was wondering how I can present this :
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Currently the only option is to use a union to define both combination |
Beta Was this translation helpful? Give feedback.
-
so I need to define the name as separate modele and also the address or what exactly ? the name can be required or the address one of the Two |
Beta Was this translation helpful? Give feedback.
-
Yeah I see , thank you ! |
Beta Was this translation helpful? Give feedback.
Yeah something like that