@hyperjump/json-schema
Advanced tools
Comparing version 0.22.0 to 0.23.0
{ | ||
"name": "@hyperjump/json-schema", | ||
"version": "0.22.0", | ||
"version": "0.23.0", | ||
"description": "A JSON Schema Validator", | ||
@@ -56,5 +56,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@hyperjump/json-schema-core": "^0.27.0", | ||
"@hyperjump/json-schema-core": "^0.28.0", | ||
"fastest-stable-stringify": "^2.0.2" | ||
} | ||
} |
@@ -104,7 +104,11 @@ # Hyperjump - JSON Schema Validator | ||
* parse: (response: Response) => string -- Given a fetch Response object, | ||
parse the body of the request | ||
* matcher: (path) => boolean -- Given a filesystem path, return whether or | ||
not the file should be considered a member of this media type | ||
* parse: (response: Response, mediaTypeParameters: object) => [SchemaObject, string] | ||
Given a fetch Response object, parse the body of the request. Return the | ||
parsed schema and an optional default dialectId. | ||
* matcher: (path) => boolean | ||
Given a filesystem path, return whether or not the file should be | ||
considered a member of this media type. | ||
```javascript | ||
@@ -117,3 +121,3 @@ const JsonSchema = require("@hyperjump/json-schema"); | ||
JsonSchema.addMediaTypePlugin("application/schema+yaml", { | ||
parse: async (response) => YAML.parse(await response.text()), | ||
parse: async (response) => [YAML.parse(await response.text()), undefined], | ||
matcher: (path) => path.endsWith(".schema.yaml") | ||
@@ -120,0 +124,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6013216
33798
219
+ Added@hyperjump/json@0.1.0(transitive)
+ Added@hyperjump/json-schema-core@0.28.5(transitive)
+ Addedmoo@0.5.2(transitive)
- Removed@hyperjump/json-schema-core@0.27.0(transitive)