@stoplight/json-schema-ref-parser
Advanced tools
Comparing version 9.0.5 to 9.1.0-beta.1
@@ -235,2 +235,28 @@ import { JSONSchema4, JSONSchema4Type, JSONSchema6, JSONSchema6Type } from "json-schema"; | ||
}; | ||
bundle?: { | ||
/** | ||
* Used to generate $ref. | ||
* If null is returned, the default logic applies. | ||
* | ||
* @param {*} value | ||
* @param {string} file | ||
* @param {string|null} hash | ||
* @return {string|null} | ||
*/ | ||
generateKey?(value: unknown, file: string, hash: string | null): string | null; | ||
/** | ||
* Determines whether a value of given reference should be inlined in the resulting output. | ||
* | ||
* @param {string} pathFromRoot | ||
* @return boolean | ||
*/ | ||
shouldInline?(pathFromRoot: string): boolean; | ||
/** | ||
* The default root to optimize for. | ||
*/ | ||
defaultRoot?: string; | ||
}; | ||
} | ||
@@ -237,0 +263,0 @@ |
@@ -78,2 +78,30 @@ /* eslint lines-around-comment: [2, {beforeBlockComment: false}] */ | ||
}, | ||
bundle: { | ||
/** | ||
* Used to generate $ref. | ||
* If null is returned, the default logic applies. | ||
* | ||
* @param {*} value | ||
* @param {string} file | ||
* @param {string|null} hash | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
generateKey (value, file, hash) { return null; }, | ||
/** | ||
* Determines whether a value of given reference should be inlined in the resulting output | ||
* | ||
* @param {string} pathFromRoot | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
shouldInline (pathFromRoot) { return false; }, | ||
/** | ||
* The default root to optimize for. | ||
* | ||
* @type {string} | ||
*/ | ||
defaultRoot: "#/definitions" | ||
} | ||
}; | ||
@@ -80,0 +108,0 @@ |
{ | ||
"name": "@stoplight/json-schema-ref-parser", | ||
"version": "9.0.5", | ||
"version": "9.1.0-beta.1", | ||
"description": "Parse, Resolve, and Dereference JSON Schema $ref pointers", | ||
@@ -67,2 +67,3 @@ "keywords": [ | ||
"mocha": "^8.0.1", | ||
"nock": "^12.0.3", | ||
"npm-check": "^5.9.0", | ||
@@ -75,2 +76,3 @@ "nyc": "^15.0.1", | ||
"@jsdevtools/ono": "^7.1.3", | ||
"@stoplight/path": "^1.3.2", | ||
"@stoplight/yaml": "^4.0.2", | ||
@@ -77,0 +79,0 @@ "call-me-maybe": "^1.0.1" |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
160328
27
3404
4
18
1
+ Added@stoplight/path@^1.3.2
+ Added@stoplight/path@1.3.2(transitive)