Add hasVocabulary function #141
Annotations
5 errors and 1 warning
lib/get-dialect-ids.spec.ts > getDialectIds function > should return only imported schema in the array if no custom dialects are loaded:
lib/get-dialect-ids.spec.ts#L17
AssertionError: expected [ …(15) ] to deeply equal [ …(16) ]
- Expected
+ Received
[
"https://json-schema.org/draft/2020-12/schema",
"https://json-schema.org/draft/2019-09/schema",
"http://json-schema.org/draft-04/schema",
"http://json-schema.org/draft-06/schema",
"http://json-schema.org/draft-07/schema",
"https://spec.openapis.org/oas/3.0/dialect",
- "https://spec.openapis.org/oas/3.0/schema",
"https://spec.openapis.org/oas/3.1/dialect/base",
"https://spec.openapis.org/oas/3.1/schema-base",
"https://spec.openapis.org/oas/3.1/schema-base/latest",
"https://spec.openapis.org/oas/3.1/schema-draft-2020-12",
"https://spec.openapis.org/oas/3.1/schema-draft-2019-09",
"https://spec.openapis.org/oas/3.1/schema-draft-07",
"https://spec.openapis.org/oas/3.1/schema-draft-06",
"https://spec.openapis.org/oas/3.1/schema-draft-04",
"https://json-schema.org/validation",
]
❯ lib/get-dialect-ids.spec.ts:17:24
|
lib/get-dialect-ids.spec.ts > getDialectIds function > returns an array of dialect identifiers that are either imported in the file or loaded as custom dialects:
lib/get-dialect-ids.spec.ts#L47
AssertionError: expected [ …(16) ] to deeply equal [ …(17) ]
- Expected
+ Received
[
"https://json-schema.org/draft/2020-12/schema",
"https://json-schema.org/draft/2019-09/schema",
"http://json-schema.org/draft-04/schema",
"http://json-schema.org/draft-06/schema",
"http://json-schema.org/draft-07/schema",
"https://spec.openapis.org/oas/3.0/dialect",
- "https://spec.openapis.org/oas/3.0/schema",
"https://spec.openapis.org/oas/3.1/dialect/base",
"https://spec.openapis.org/oas/3.1/schema-base",
"https://spec.openapis.org/oas/3.1/schema-base/latest",
"https://spec.openapis.org/oas/3.1/schema-draft-2020-12",
"https://spec.openapis.org/oas/3.1/schema-draft-2019-09",
"https://spec.openapis.org/oas/3.1/schema-draft-07",
"https://spec.openapis.org/oas/3.1/schema-draft-06",
"https://spec.openapis.org/oas/3.1/schema-draft-04",
"https://json-schema.org/validation",
"http://example.com/dialect1",
]
❯ lib/get-dialect-ids.spec.ts:47:24
|
build (20.x)
Process completed with exit code 1.
|
build (18.x)
The job was canceled because "_20_x" failed.
|
build (18.x)
The operation was canceled.
|
build (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|