diff --git a/lib/parser.js b/lib/parser.js index 6a158f052..b869141b5 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -40,7 +40,7 @@ module.exports = { * Parses and validate an AsyncAPI document from YAML or JSON. * * @param {(String | Object)} asyncapiYAMLorJSON An AsyncAPI document in JSON or YAML format. - * @param {ParserOptions} options Configuration options object {@link ParserOptions} + * @param {ParserOptions=} options Configuration options object {@link ParserOptions} * @returns {Promise} The parsed AsyncAPI document. */ async function parse(asyncapiYAMLorJSON, options = {}) { @@ -122,8 +122,8 @@ async function parse(asyncapiYAMLorJSON, options = {}) { * Fetches an AsyncAPI document from the given URL and passes its content to the `parse` method. * * @param {String} url URL where the AsyncAPI document is located. - * @param {Object} [fetchOptions] Configuration to pass to the {@link https://developer.mozilla.org/en-US/docs/Web/API/Request|fetch} call. - * @param {ParserOptions} [options] Configuration to pass to the {@link ParserOptions} method. + * @param {Object=} [fetchOptions] Configuration to pass to the {@link https://developer.mozilla.org/en-US/docs/Web/API/Request|fetch} call. + * @param {ParserOptions=} [options] Configuration to pass to the {@link ParserOptions} method. * @returns {Promise} The parsed AsyncAPI document. */ function parseFromUrl(url, fetchOptions, options) {