github.com/kaptinlin/jsonschema@v0.4.6/tests/content_test.go (about)

     1  package tests
     2  
     3  import "testing"
     4  
     5  // TestContentForTestSuite executes the content validation tests for Schema Test Suite.
     6  func TestContentForTestSuite(t *testing.T) {
     7  	testJSONSchemaTestSuiteWithFilePath(t, "../testdata/JSON-Schema-Test-Suite/tests/draft2020-12/content.json",
     8  		"validation of string-encoded content based on media type/an invalid JSON document; validates true",
     9  		"validation of binary string-encoding/an invalid base64 string (% is not a valid character); validates true",
    10  		"validation of binary-encoded media type documents/a validly-encoded invalid JSON document; validates true",
    11  		"validation of binary-encoded media type documents/an invalid base64 string that is valid JSON; validates true",
    12  		"validation of binary-encoded media type documents with schema/an invalid base64-encoded JSON document; validates true",
    13  		"validation of binary-encoded media type documents with schema/an empty object as a base64-encoded JSON document; validates true",
    14  		"validation of binary-encoded media type documents with schema/an empty array as a base64-encoded JSON document",
    15  		"validation of binary-encoded media type documents with schema/a validly-encoded invalid JSON document; validates true",
    16  		"validation of binary-encoded media type documents with schema/an invalid base64 string that is valid JSON; validates true",
    17  	)
    18  }