const defaultOptions = { parse: { /** * This is media type that will be used to parse the input. */ mediaType: 'text/plain', /** * Determines how different types of files will be parsed. * * You can add additional parsers of your own, replace an existing one with * your own implementation, or remove any resolver by removing it from the list. * It's recommended to keep the order of parser from most specific ones to most generic ones. */ parsers: [], /** * These options are merged with parser plugin instance before the plugin is run. */ parserOpts: {} }, resolve: { /** * baseURI serves as a base for all relative URL found in ApiDOM references. */ baseURI: '', /** * Determines how References will be resolved. * * You can add additional resolvers of your own, replace an existing one with * your own implementation, or remove any resolver by removing it from the list. */ resolvers: [], /** * These options are merged with resolver plugin instance before the plugin is run. */ resolverOpts: {}, /** * Determines strategies how References are identified and processed by resolvers. * Strategy is determined by media type. * * You can add additional resolver strategies of your own, replace an existing one with * your own implementation, or remove any resolve strategy by removing it from the list. */ strategies: [], /** * Determines whether external references will be resolved. * If this option is disabled, then none of above resolvers will be called. * Instead, external references will simply be ignored. */ external: true, /** * Determines the maximum depth of resolve algorithms. * By default, there is no limit. * * This option tracks the depth of the file tree not the depth of the dereference path. * * It can be set to any positive integer number or zero (0). * * The resolver should throw MaximumResolverDepthError if resolution depth * is exceeded by this option. */ maxDepth: +Infinity }, dereference: { /** * Determines strategies how ApiDOM is dereferenced. * Strategy is determined by media type or by inspecting ApiDOM to be dereferenced. * * You can add additional dereference strategies of your own, replace an existing one with * your own implementation, or remove any dereference strategy by removing it from the list. */ strategies: [], /** * This option accepts an instance of pre-computed ReferenceSet. * If provided it will speed up the dereferencing significantly as the external * resolution doesn't need to happen anymore. */ refSet: null, /** * Determines the maximum depth of dereferencing. * By default, there is no limit. * * The maxDepth represents a number of references that needed to be followed * before the eventual value was reached. * * It can be set to any positive integer number or zero (0). * * The dereferencing should throw MaximumDereferenceDepthError if dereferencing depth * is exceeded by this option. */ maxDepth: +Infinity }, bundle: { /** * Determines strategies how ApiDOM is bundled. * Strategy is determined by media type or by inspecting ApiDOM to be bundled. * * You can add additional bundle strategies of your own, replace an existing one with * your own implementation, or remove any bundle strategy by removing it from the list. */ strategies: [], /** * This option accepts an instance of pre-computed ReferenceSet. * If provided it will speed up the bundling significantly as the external * resolution doesn't need to happen anymore. */ refSet: null, /** * Determines the maximum depth of bundling. * By default, there is no limit. * * The maxDepth represents a number of references that needed to be followed * before the eventual value was reached. * * It can be set to any positive integer number or zero (0). * * The bundling should throw MaximumBundleDepthError if bundling depth * is exceeded by this option. */ maxDepth: +Infinity } }; export default defaultOptions;