@@ -27,7 +27,7 @@ module.exports.UnmatchedResolverError = UnmatchedResolverError;
27
27
* This class parses a JSON schema, builds a map of its JSON references and their resolved values,
28
28
* and provides methods for traversing, manipulating, and dereferencing those references.
29
29
*
30
- * @constructor
30
+ * @class
31
31
*/
32
32
function $RefParser ( ) {
33
33
/**
@@ -55,7 +55,7 @@ function $RefParser () {
55
55
* @param {string } [path] - The file path or URL of the JSON schema
56
56
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
57
57
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed
58
- * @param {function } [callback] - An error-first callback. The second parameter is the parsed JSON schema object.
58
+ * @param {Function } [callback] - An error-first callback. The second parameter is the parsed JSON schema object.
59
59
* @returns {Promise } - The returned promise resolves with the parsed JSON schema object.
60
60
*/
61
61
$RefParser . parse = function parse ( path , schema , options , callback ) {
@@ -72,7 +72,7 @@ $RefParser.parse = function parse (path, schema, options, callback) {
72
72
* @param {string } [path] - The file path or URL of the JSON schema
73
73
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
74
74
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed
75
- * @param {function } [callback] - An error-first callback. The second parameter is the parsed JSON schema object.
75
+ * @param {Function } [callback] - An error-first callback. The second parameter is the parsed JSON schema object.
76
76
* @returns {Promise } - The returned promise resolves with the parsed JSON schema object.
77
77
*/
78
78
$RefParser . prototype . parse = async function parse ( path , schema , options , callback ) {
@@ -152,7 +152,7 @@ $RefParser.prototype.parse = async function parse (path, schema, options, callba
152
152
* @param {string } [path] - The file path or URL of the JSON schema
153
153
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
154
154
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed and resolved
155
- * @param {function } [callback]
155
+ * @param {Function } [callback]
156
156
* - An error-first callback. The second parameter is a {@link $Refs} object containing the resolved JSON references
157
157
*
158
158
* @returns {Promise }
@@ -171,7 +171,7 @@ $RefParser.resolve = function resolve (path, schema, options, callback) {
171
171
* @param {string } [path] - The file path or URL of the JSON schema
172
172
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
173
173
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed and resolved
174
- * @param {function } [callback]
174
+ * @param {Function } [callback]
175
175
* - An error-first callback. The second parameter is a {@link $Refs} object containing the resolved JSON references
176
176
*
177
177
* @returns {Promise }
@@ -200,7 +200,7 @@ $RefParser.prototype.resolve = async function resolve (path, schema, options, ca
200
200
* @param {string } [path] - The file path or URL of the JSON schema
201
201
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
202
202
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed, resolved, and dereferenced
203
- * @param {function } [callback] - An error-first callback. The second parameter is the bundled JSON schema object
203
+ * @param {Function } [callback] - An error-first callback. The second parameter is the bundled JSON schema object
204
204
* @returns {Promise } - The returned promise resolves with the bundled JSON schema object.
205
205
*/
206
206
$RefParser . bundle = function bundle ( path , schema , options , callback ) {
@@ -217,7 +217,7 @@ $RefParser.bundle = function bundle (path, schema, options, callback) {
217
217
* @param {string } [path] - The file path or URL of the JSON schema
218
218
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
219
219
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed, resolved, and dereferenced
220
- * @param {function } [callback] - An error-first callback. The second parameter is the bundled JSON schema object
220
+ * @param {Function } [callback] - An error-first callback. The second parameter is the bundled JSON schema object
221
221
* @returns {Promise } - The returned promise resolves with the bundled JSON schema object.
222
222
*/
223
223
$RefParser . prototype . bundle = async function bundle ( path , schema , options , callback ) {
@@ -242,7 +242,7 @@ $RefParser.prototype.bundle = async function bundle (path, schema, options, call
242
242
* @param {string } [path] - The file path or URL of the JSON schema
243
243
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
244
244
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed, resolved, and dereferenced
245
- * @param {function } [callback] - An error-first callback. The second parameter is the dereferenced JSON schema object
245
+ * @param {Function } [callback] - An error-first callback. The second parameter is the dereferenced JSON schema object
246
246
* @returns {Promise } - The returned promise resolves with the dereferenced JSON schema object.
247
247
*/
248
248
$RefParser . dereference = function dereference ( path , schema , options , callback ) {
@@ -258,7 +258,7 @@ $RefParser.dereference = function dereference (path, schema, options, callback)
258
258
* @param {string } [path] - The file path or URL of the JSON schema
259
259
* @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
260
260
* @param {$RefParserOptions } [options] - Options that determine how the schema is parsed, resolved, and dereferenced
261
- * @param {function } [callback] - An error-first callback. The second parameter is the dereferenced JSON schema object
261
+ * @param {Function } [callback] - An error-first callback. The second parameter is the dereferenced JSON schema object
262
262
* @returns {Promise } - The returned promise resolves with the dereferenced JSON schema object.
263
263
*/
264
264
$RefParser . prototype . dereference = async function dereference ( path , schema , options , callback ) {
0 commit comments