- 
                Notifications
    
You must be signed in to change notification settings  - Fork 6
 
Improvement for oneof support #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Improvement for oneof support #94
Conversation
This allows for later usage of the fieldProperty name.
a6056d7    to
    5414270      
    Compare
  
    5414270    to
    10e9606      
    Compare
  
    Ran `make lint` and resolved warnings/errors.
| 
           Due to the upgrade to 1.14 in #98 and the addition of buf.validate.message.oneof i have rebased the PR and added the commits 331fc79, 10e9606 and 2972675.  | 
    
| 
           Hey @pkwarren Sorry to bug but is there any chance you could maybe have a look at this PR and let me know if this is an addition that would be welcome? Thanks in advance!  | 
    
| 
           Hey @boekkooi-impossiblecloud, thanks for the PR! I have some questions over here: #109 (comment)  | 
    
Good day,
While I was using the
protoc-gen-jsonschemaand it's generated schemas I noticed that oneOf validation was not happening for the on the JSON schema level.This PR implements the protobuf oneOf functionality and
(buf.validate.message).oneofusing the JSON Schema allOf and anyOf by using not in combination with required to exclude all other fields except for the one needed.Thanks for reviewing this PR! Please let me know what you think and have a great day!