@@ -27,7 +27,7 @@ module.exports.UnmatchedResolverError = UnmatchedResolverError;
2727 * This class parses a JSON schema, builds a map of its JSON references and their resolved values,
2828 * and provides methods for traversing, manipulating, and dereferencing those references.
2929 *
30- * @constructor
30+ * @class
3131 */
3232function $RefParser ( ) {
3333 /**
@@ -55,7 +55,7 @@ function $RefParser () {
5555 * @param {string } [path] - The file path or URL of the JSON schema
5656 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
5757 * @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.
5959 * @returns {Promise } - The returned promise resolves with the parsed JSON schema object.
6060 */
6161$RefParser . parse = function parse ( path , schema , options , callback ) {
@@ -72,7 +72,7 @@ $RefParser.parse = function parse (path, schema, options, callback) {
7272 * @param {string } [path] - The file path or URL of the JSON schema
7373 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
7474 * @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.
7676 * @returns {Promise } - The returned promise resolves with the parsed JSON schema object.
7777 */
7878$RefParser . prototype . parse = async function parse ( path , schema , options , callback ) {
@@ -152,7 +152,7 @@ $RefParser.prototype.parse = async function parse (path, schema, options, callba
152152 * @param {string } [path] - The file path or URL of the JSON schema
153153 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
154154 * @param {$RefParserOptions } [options] - Options that determine how the schema is parsed and resolved
155- * @param {function } [callback]
155+ * @param {Function } [callback]
156156 * - An error-first callback. The second parameter is a {@link $Refs} object containing the resolved JSON references
157157 *
158158 * @returns {Promise }
@@ -171,7 +171,7 @@ $RefParser.resolve = function resolve (path, schema, options, callback) {
171171 * @param {string } [path] - The file path or URL of the JSON schema
172172 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
173173 * @param {$RefParserOptions } [options] - Options that determine how the schema is parsed and resolved
174- * @param {function } [callback]
174+ * @param {Function } [callback]
175175 * - An error-first callback. The second parameter is a {@link $Refs} object containing the resolved JSON references
176176 *
177177 * @returns {Promise }
@@ -200,7 +200,7 @@ $RefParser.prototype.resolve = async function resolve (path, schema, options, ca
200200 * @param {string } [path] - The file path or URL of the JSON schema
201201 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
202202 * @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
204204 * @returns {Promise } - The returned promise resolves with the bundled JSON schema object.
205205 */
206206$RefParser . bundle = function bundle ( path , schema , options , callback ) {
@@ -217,7 +217,7 @@ $RefParser.bundle = function bundle (path, schema, options, callback) {
217217 * @param {string } [path] - The file path or URL of the JSON schema
218218 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
219219 * @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
221221 * @returns {Promise } - The returned promise resolves with the bundled JSON schema object.
222222 */
223223$RefParser . prototype . bundle = async function bundle ( path , schema , options , callback ) {
@@ -242,7 +242,7 @@ $RefParser.prototype.bundle = async function bundle (path, schema, options, call
242242 * @param {string } [path] - The file path or URL of the JSON schema
243243 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
244244 * @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
246246 * @returns {Promise } - The returned promise resolves with the dereferenced JSON schema object.
247247 */
248248$RefParser . dereference = function dereference ( path , schema , options , callback ) {
@@ -258,7 +258,7 @@ $RefParser.dereference = function dereference (path, schema, options, callback)
258258 * @param {string } [path] - The file path or URL of the JSON schema
259259 * @param {object } [schema] - A JSON schema object. This object will be used instead of reading from `path`.
260260 * @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
262262 * @returns {Promise } - The returned promise resolves with the dereferenced JSON schema object.
263263 */
264264$RefParser . prototype . dereference = async function dereference ( path , schema , options , callback ) {
0 commit comments