Skip to content
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

Show what command will reproduce a $ref failure in bowtie smoke #1319

Open
Julian opened this issue Jun 20, 2024 · 0 comments
Open

Show what command will reproduce a $ref failure in bowtie smoke #1319

Julian opened this issue Jun 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Julian
Copy link
Member

Julian commented Jun 20, 2024

When a smoke test fails due to a dialect error, we show e.g.:

⊙  bowtie smoke -i direct:tests.fauxmplementations.miniatures:incorrectly_claims_draft7                                                                                                                                                                                       julian@Airm ●

 direct:tests.fauxmplementations.miniatures:incorrectly_claims_draft7 seems to 
                                  be broken!                                   
                                                                               
                   Dialects                     Draft 2020-12                  
              (Confirmed Working)               Draft 2019-09                  
                                                      Draft 7                  
                                                      Draft 6                  
                                                      Draft 4                  
                                                      Draft 3                  
                                                                               
                                                                                                         
                                                                                                         
                                            Draft 7 Failures                                             
                                                               ╷                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │   null         incorrectly invalid      
                                                               │                                         
                                                               │                                         
                                                               │   true         incorrectly invalid      
                                                               │                                         
                                                               │                                         
     {                                                         │   37           incorrectly invalid      
       "$schema": "http://json-schema.org/draft-07/schema#"    │                                         
     }                                                         │                                         
                                                               │   37.37        incorrectly invalid      
                                                               │                                         
                                                               │                                         
                                                               │   "37"         incorrectly invalid      
                                                               │                                         
                                                               │                                         
                                                               │   [37]         incorrectly invalid      
                                                               │                                         
                                                               │                                         
                                                               │   {"foo": 37}  incorrectly invalid      
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               │   null         incorrectly valid        
                                                               │                                         
                                                               │                                         
                                                               │   true         incorrectly valid        
                                                               │                                         
     {                                                         │                                         
       "$schema": "http://json-schema.org/draft-07/schema#",   │   37           incorrectly valid        
       "not": {                                                │                                         
         "$schema": "http://json-schema.org/draft-07/schema#"  │                                         
       }                                                       │   37.37        incorrectly valid        
     }                                                         │                                         
                                                               │                                         
                                                               │   "37"         incorrectly valid        
                                                               │                                         
                                                               │                                         
                                                               │   [37]         incorrectly valid        
                                                               │                                         
                                                               │                                         
                                                               │   {"foo": 37}  incorrectly valid        
                                                               │                                         
                                                               │                                         
                                                               │                                         
                                                               ╵                                         
                                                                                                         
  bowtie validate -i direct:tests.fauxmplementations.miniatures:incorrectly_claims_draft7 <(printf '     
      {"$schema": "http://json-schema.org/draft-07/schema#"}                                             
  ') <(printf '                                                                                          
      null                                                                                               
  ')                                                                                                     
                                                                                                         
  can be used to reproduce one of the failures.   

We should show a similar sample command via bowtie run in order to reproduce referencing failures. See e.g. bowtie smoke -i direct:tests.fauxmplementations.miniatures:no_registry_support for an example.

@Julian Julian added the enhancement New feature or request label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant