How would i define a union type? #944
                  
                    
                      VesperQuartz
                    
                  
                
                  started this conversation in
                General
              
            Replies: 2 comments 2 replies
-
| 
         That is correct indeed. See https://www.learnjsonschema.com/2020-12/validation/type/ for more documentation and examples about the   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 
         Why couldn't I find this in the normal documentation 
  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
like it can be a number or a string? is
{"type": ["string", "number"]}}valid?Beta Was this translation helpful? Give feedback.
All reactions