patternProperties & properties #782
                  
                    
                      gantsevdenis
                    
                  
                
                  started this conversation in
                Specification
              
            Replies: 2 comments 2 replies
-
| In this case,  The validation is failing because it matches the  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| Okey so because  | 
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.
-
So I am implementing a Draft04 validator for fun, and running it against test suite
https://github.com/json-schema-org/JSON-Schema-Test-Suite.When reading the algorithm given in the "Example" section of "additionalProperties, properties and patternProperties" (
https://json-schema.org/draft-04/draft-fge-json-schema-validation-00#rfc.section.5.4.4), we have this sentence:
However, the above mentionned test suit actually tells me otherwise. Given:
We have:
Then:
So in my understanding, the above instance should validate, but according to tests, it doesn't. Can someone please explain this?
Beta Was this translation helpful? Give feedback.
All reactions