json-schema-library
Version:
Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation
1,267 lines • 330 kB
JSON
{
"stats": {
"suites": 135,
"tests": 451,
"passes": 449,
"pending": 2,
"failures": 0,
"start": "2024-02-25T16:04:28.884Z",
"end": "2024-02-25T16:04:29.006Z",
"duration": 122
},
"tests": [
{
"title": "should return rootSchema",
"fullTitle": "compile.getRef should return rootSchema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return value for json-pointer uri",
"fullTitle": "compile.getRef should return value for json-pointer uri",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve ids to pointer",
"fullTitle": "compile.getRef should resolve ids to pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return remote schema",
"fullTitle": "compile.getRef should return remote schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve host/target from ids",
"fullTitle": "compile.getRef host/target should resolve host/target from ids",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve separated host/target from ids",
"fullTitle": "compile.getRef host/target should resolve separated host/target from ids",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve target-pointer from remote host",
"fullTitle": "compile.getRef host/target should resolve target-pointer from remote host",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call 'getRef' when resolving remotes",
"fullTitle": "compile.getRef host/target should call 'getRef' when resolving remotes",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve pointer recursively",
"fullTitle": "compile.getRef recursion should resolve pointer recursively",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve id recursively",
"fullTitle": "compile.getRef recursion should resolve id recursively",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve remote recursively",
"fullTitle": "compile.getRef recursion should resolve remote recursively",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/getRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return base without trailing #",
"fullTitle": "joinScope single param should return base without trailing #",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should join domain with folder",
"fullTitle": "joinScope single param should join domain with folder",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should join domain with folder/",
"fullTitle": "joinScope single param should join domain with folder/",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should add file to domain with folder/",
"fullTitle": "joinScope single param should add file to domain with folder/",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should replace fragments not ending with slash",
"fullTitle": "joinScope single param should replace fragments not ending with slash",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should append id to url",
"fullTitle": "joinScope single param should append id to url",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should append id to url/",
"fullTitle": "joinScope single param should append id to url/",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should override base root",
"fullTitle": "joinScope single param should override base root",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should replace id",
"fullTitle": "joinScope single param should replace id",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should replace pointer",
"fullTitle": "joinScope single param should replace pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/joinScope.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return empty list for empty string",
"fullTitle": "compile.splitRef should return empty list for empty string",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return empty list for root pointer",
"fullTitle": "compile.splitRef should return empty list for root pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return input pointer",
"fullTitle": "compile.splitRef should return input pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return input id",
"fullTitle": "compile.splitRef should return input id",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return sanitized url",
"fullTitle": "compile.splitRef should return sanitized url",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return sanitized url",
"fullTitle": "compile.splitRef should return sanitized url",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return sanitized url and id",
"fullTitle": "compile.splitRef should return sanitized url and id",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return sanitized url and pointer",
"fullTitle": "compile.splitRef should return sanitized url and pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compile/splitRef.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return undefined for missing schema",
"fullTitle": "compile behaviour should return undefined for missing schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return a copy",
"fullTitle": "compile behaviour should return a copy",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should not copy schema twice",
"fullTitle": "compile behaviour should not copy schema twice",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should not change iterable properties",
"fullTitle": "compile behaviour should not change iterable properties",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 9,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should always return json-pointer target",
"fullTitle": "compile getRef should always return json-pointer target",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return a defined $ref with json-pointer",
"fullTitle": "compile getRef should return a defined $ref with json-pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema defined with referenced ids",
"fullTitle": "compile getRef should return schema defined with referenced ids",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema for absolute assembled scope ids",
"fullTitle": "compile getRef should return schema for absolute assembled scope ids",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve json-pointer with root-url",
"fullTitle": "compile getRef should resolve json-pointer with root-url",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema defined with referenced ids from root schema",
"fullTitle": "compile getRef should return schema defined with referenced ids from root schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema defined with referenced ids not using root schema",
"fullTitle": "compile getRef should return schema defined with referenced ids not using root schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should compile ref to absolute scope",
"fullTitle": "compile compile ref should compile ref to absolute scope",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should compile ref to absolute scope",
"fullTitle": "compile compile ref should compile ref to absolute scope",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve absolute url with subfolder",
"fullTitle": "compile compile ref should resolve absolute url with subfolder",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve remotes",
"fullTitle": "compile getRef remote should resolve remotes",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve remotes with trailing '#'",
"fullTitle": "compile getRef remote should resolve remotes with trailing '#'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve pointer within remote",
"fullTitle": "compile getRef remote should resolve pointer within remote",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve id within remote",
"fullTitle": "compile getRef remote should resolve id within remote",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return root",
"fullTitle": "compile spec ref.json should return root",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return relative pointer",
"fullTitle": "compile spec ref.json should return relative pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should work on escaped pointer",
"fullTitle": "compile spec ref.json should work on escaped pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve nested $ref",
"fullTitle": "compile spec ref.json should resolve nested $ref",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve pointer containing quotes",
"fullTitle": "compile spec ref.json should resolve pointer containing quotes",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve location independent identifier",
"fullTitle": "compile spec ref.json should resolve location independent identifier",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve location independent identifier with base uri change in subschema",
"fullTitle": "compile spec ref.json should resolve location independent identifier with base uri change in subschema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve remote ref",
"fullTitle": "compile draft04Schema spec remoteRef.json should resolve remote ref",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve remote ref with fragment",
"fullTitle": "compile draft04Schema spec remoteRef.json should resolve remote ref with fragment",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve ref with remote ref",
"fullTitle": "compile draft04Schema spec remoteRef.json should resolve ref with remote ref",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should join scope and resolve to remote",
"fullTitle": "compile draft04Schema spec remoteRef.json should join scope and resolve to remote",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should correctly replace base uri for remote scope updates",
"fullTitle": "compile draft04Schema spec remoteRef.json should correctly replace base uri for remote scope updates",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve joined remote with root ref",
"fullTitle": "compile draft04Schema spec remoteRef.json should resolve joined remote with root ref",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "base URI change ref valid",
"fullTitle": "compile draft04Schema spec remoteRef.json base URI change base URI change ref valid",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "base URI change ref invalid",
"fullTitle": "compile draft04Schema spec remoteRef.json base URI change base URI change ref invalid",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "number is valid",
"fullTitle": "compile draft04Schema spec remoteRef.json base URI change - change folder number is valid",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "string is invalid",
"fullTitle": "compile draft04Schema spec remoteRef.json base URI change - change folder string is invalid",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "$ref resolves to /definitions/base_foo, data does not validate",
"fullTitle": "compile draft04Schema spec remoteRef.json $ref prevents a sibling id from changing the base uri $ref resolves to /definitions/base_foo, data does not validate",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "$ref resolves to /definitions/base_foo, data validates",
"fullTitle": "compile draft04Schema spec remoteRef.json $ref prevents a sibling id from changing the base uri $ref resolves to /definitions/base_foo, data validates",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should validate 'string'",
"fullTitle": "compileV06 01 - refRemote base URI change - base URI change ref invalid should validate 'string'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchemaV6.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should validate 'null'",
"fullTitle": "compileV06 01 - refRemote base URI change - base URI change ref invalid should validate 'null'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchemaV6.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should not validate 'object'",
"fullTitle": "compileV06 01 - refRemote base URI change - base URI change ref invalid should not validate 'object'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchemaV6.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should not validate 'string'",
"fullTitle": "compileV06 02 - refRemote base URI change - base URI change ref invalid should not validate 'string'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchemaV6.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should validate 'number'",
"fullTitle": "compileV06 02 - refRemote base URI change - base URI change ref invalid should validate 'number'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/compileSchemaV6.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should add type 'object' of data to schema",
"fullTitle": "createSchemaOf should add type 'object' of data to schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/createSchemaOf.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should add type 'string' of data to schema",
"fullTitle": "createSchemaOf should add type 'string' of data to schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/createSchemaOf.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should should add object's properties",
"fullTitle": "createSchemaOf should should add object's properties",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/createSchemaOf.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should add items from array",
"fullTitle": "createSchemaOf should add items from array",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/createSchemaOf.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should add single item as item-object",
"fullTitle": "createSchemaOf should add single item as item-object",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/createSchemaOf.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "validate should return error",
"fullTitle": "docs draft methods validate should return error",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "validate should return error for separate schema",
"fullTitle": "docs draft methods validate should return error for separate schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return data using 'getTemplate'",
"fullTitle": "docs draft methods should return data using 'getTemplate'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should complement data using 'getTemplate'",
"fullTitle": "docs draft methods should complement data using 'getTemplate'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call for each data point using 'each",
"fullTitle": "docs draft methods should call for each data point using 'each",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call for each sub schema",
"fullTitle": "docs draft methods should call for each sub schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve oneOf item using 'getSchema'",
"fullTitle": "docs draft methods should resolve oneOf item using 'getSchema'",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve from remote schema",
"fullTitle": "docs draft methods should resolve from remote schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/docs.test.ts",
"duration": 4,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve remote schema from given url",
"fullTitle": "docs - remote schema should resolve remote schema from given url",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/remoteSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve remote schemas from simple ids",
"fullTitle": "docs - remote schema should resolve remote schemas from simple ids",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/remoteSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve $defs from remote schema",
"fullTitle": "docs - remote schema should resolve $defs from remote schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/remoteSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve $defs from remote schema using simple ids",
"fullTitle": "docs - remote schema should resolve $defs from remote schema using simple ids",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/remoteSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve pointer to nested object in remote schema",
"fullTitle": "docs - remote schema should resolve pointer to nested object in remote schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/docs/remoteSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call callback with schema, value and pointer",
"fullTitle": "each should call callback with schema, value and pointer",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/each.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should callback for array and all array items",
"fullTitle": "each should callback for array and all array items",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/each.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should callback for array and pick correct schema forEach item",
"fullTitle": "each should callback for array and pick correct schema forEach item",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/each.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should callback for object and all properties",
"fullTitle": "each should callback for object and all properties",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/each.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve root reference",
"fullTitle": "each should resolve root reference",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/each.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should execute callback on root-schema",
"fullTitle": "eachSchema should execute callback on root-schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on unspecified properties",
"fullTitle": "eachSchema should call on unspecified properties",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"currentRetry": 0,
"err": {}
},
{
"title": "should call on each property schema",
"fullTitle": "eachSchema should call on each property schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on each item schema",
"fullTitle": "eachSchema should call on each item schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on each item property",
"fullTitle": "eachSchema should call on each item property",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on each oneOf-schema",
"fullTitle": "eachSchema should call on each oneOf-schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on each oneOf-schema in items",
"fullTitle": "eachSchema should call on each oneOf-schema in items",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on each anyOf-schema",
"fullTitle": "eachSchema should call on each anyOf-schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on each allOf-schema",
"fullTitle": "eachSchema should call on each allOf-schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on definitions",
"fullTitle": "eachSchema should call on definitions",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on additionalProperties",
"fullTitle": "eachSchema should call on additionalProperties",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should ignore depedency list",
"fullTitle": "eachSchema should ignore depedency list",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should call on each depedency schema",
"fullTitle": "eachSchema should call on each depedency schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should iterate definitions",
"fullTitle": "eachSchema should iterate definitions",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should iterate over nested definitions",
"fullTitle": "eachSchema should iterate over nested definitions",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should support array-types",
"fullTitle": "eachSchema should support array-types",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/eachSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return a single object-schema as list",
"fullTitle": "getChildSchemaSelection should return a single object-schema as list",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getChildSchemaSelection.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return a single array-item as list",
"fullTitle": "getChildSchemaSelection should return a single array-item as list",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getChildSchemaSelection.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return list of oneOf elements",
"fullTitle": "getChildSchemaSelection should return list of oneOf elements",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getChildSchemaSelection.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve items from oneOf elements",
"fullTitle": "getChildSchemaSelection should resolve items from oneOf elements",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getChildSchemaSelection.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema of any value",
"fullTitle": "getSchema value should return schema of any value",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve property through root $ref",
"fullTitle": "getSchema value should resolve property through root $ref",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema of valid property",
"fullTitle": "getSchema object should return schema of valid property",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return `schema-warning` for unknown, but valid property",
"fullTitle": "getSchema object should return `schema-warning` for unknown, but valid property",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return `undefined` for unknown, but valid property",
"fullTitle": "getSchema object should return `undefined` for unknown, but valid property",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema for unknown property if data is passed",
"fullTitle": "getSchema object should return schema for unknown property if data is passed",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return an error for invalid properties",
"fullTitle": "getSchema object should return an error for invalid properties",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return an error for invalid properties, even if value is given",
"fullTitle": "getSchema object should return an error for invalid properties, even if value is given",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema for property within nested object",
"fullTitle": "getSchema object should return schema for property within nested object",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should resolve $ref as property",
"fullTitle": "getSchema object should resolve $ref as property",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return correct 'oneOf' object definition",
"fullTitle": "getSchema object should return correct 'oneOf' object definition",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return 'one-of-error' if enforced oneOf schema could not be resolved",
"fullTitle": "getSchema object should return 'one-of-error' if enforced oneOf schema could not be resolved",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema of matching patternProperty",
"fullTitle": "getSchema object should return schema of matching patternProperty",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return an error if schema could not be resolved",
"fullTitle": "getSchema object should return an error if schema could not be resolved",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema from dependencies when dependent property is present",
"fullTitle": "getSchema object dependencies should return schema from dependencies when dependent property is present",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return then-schema for matching if-schema",
"fullTitle": "getSchema object if-then-else should return then-schema for matching if-schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return else-schema for non-matching if-schema",
"fullTitle": "getSchema object if-then-else should return else-schema for non-matching if-schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return correct schema for duplicate property",
"fullTitle": "getSchema object if-then-else should return correct schema for duplicate property",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return item schema",
"fullTitle": "getSchema array should return item schema",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return item schema based on index",
"fullTitle": "getSchema array should return item schema based on index",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return schema for matching 'oneOf' item",
"fullTitle": "getSchema array should return schema for matching 'oneOf' item",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should return error if no matching 'oneOf' item was found",
"fullTitle": "getSchema array should return error if no matching 'oneOf' item was found",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getSchema.test.ts",
"duration": 1,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should set an empty string if no default value is given",
"fullTitle": "getTemplate should set an empty string if no default value is given",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getTemplate.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should set the first enum option for a missing default",
"fullTitle": "getTemplate should set the first enum option for a missing default",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getTemplate.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should support null types",
"fullTitle": "getTemplate should support null types",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getTemplate.test.ts",
"duration": 0,
"currentRetry": 0,
"speed": "fast",
"err": {}
},
{
"title": "should support null type properties",
"fullTitle": "getTemplate should support null type properties",
"file": "/Users/saschagoldhofer/Arbeit/versioned/sagold/json-schema-library/test/unit/getTemplate.test.ts",
"duration": 0,
"currentRet