source: node_modules/@swagger-api/apidom-reference/es/configuration/saturated.mjs@ 65b6638

main
Last change on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 3.5 KB
Line 
1import FileResolver from "../resolve/resolvers/file/index-node.mjs";
2import HttpResolverAxios from "../resolve/resolvers/http-axios/index.mjs";
3import OpenApi2ResolveStrategy from "../resolve/strategies/openapi-2/index.mjs";
4import OpenApi3_0ResolveStrategy from "../resolve/strategies/openapi-3-0/index.mjs";
5import OpenApi3_1ResolveStrategy from "../resolve/strategies/openapi-3-1/index.mjs";
6import AsyncApi2ResolveStrategy from "../resolve/strategies/asyncapi-2/index.mjs";
7import ApiDesignSystemsJsonParser from "../parse/parsers/api-design-systems-json/index.mjs";
8import ApiDesignSystemsYamlParser from "../parse/parsers/api-design-systems-yaml/index.mjs";
9import OpenApiJson2Parser from "../parse/parsers/openapi-json-2/index.mjs";
10import OpenApiYaml2Parser from "../parse/parsers/openapi-yaml-2/index.mjs";
11import OpenApiJson3_0Parser from "../parse/parsers/openapi-json-3-0/index.mjs";
12import OpenApiYaml3_0Parser from "../parse/parsers/openapi-yaml-3-0/index.mjs";
13import OpenApiJson3_1Parser from "../parse/parsers/openapi-json-3-1/index.mjs";
14import OpenApiYaml3_1Parser from "../parse/parsers/openapi-yaml-3-1/index.mjs";
15import AsyncApiJson2Parser from "../parse/parsers/asyncapi-json-2/index.mjs";
16import AsyncApiYaml2Parser from "../parse/parsers/asyncapi-yaml-2/index.mjs";
17import WorkflowsJson1Parser from "../parse/parsers/workflows-json-1/index.mjs";
18import WorkflowsYaml1Parser from "../parse/parsers/workflows-yaml-1/index.mjs";
19import JsonParser from "../parse/parsers/json/index.mjs";
20import YamlParser from "../parse/parsers/yaml-1-2/index.mjs";
21import BinaryParser from "../parse/parsers/binary/index-node.mjs";
22import OpenApi2DereferenceStrategy from "../dereference/strategies/openapi-2/index.mjs";
23import OpenApi3_0DereferenceStrategy from "../dereference/strategies/openapi-3-0/index.mjs";
24import OpenApi3_1DereferenceStrategy from "../dereference/strategies/openapi-3-1/index.mjs";
25import AsyncApi2DereferenceStrategy from "../dereference/strategies/asyncapi-2/index.mjs";
26import OpenApi3_1BundleStrategy from "../bundle/strategies/openapi-3-1/index.mjs";
27import { options } from "../index.mjs";
28options.parse.parsers = [OpenApiJson2Parser({
29 allowEmpty: true,
30 sourceMap: false
31}), OpenApiYaml2Parser({
32 allowEmpty: true,
33 sourceMap: false
34}), OpenApiJson3_0Parser({
35 allowEmpty: true,
36 sourceMap: false
37}), OpenApiYaml3_0Parser({
38 allowEmpty: true,
39 sourceMap: false
40}), OpenApiJson3_1Parser({
41 allowEmpty: true,
42 sourceMap: false
43}), OpenApiYaml3_1Parser({
44 allowEmpty: true,
45 sourceMap: false
46}), AsyncApiJson2Parser({
47 allowEmpty: true,
48 sourceMap: false
49}), AsyncApiYaml2Parser({
50 allowEmpty: true,
51 sourceMap: false
52}), WorkflowsJson1Parser({
53 allowEmpty: true,
54 sourceMap: false
55}), WorkflowsYaml1Parser({
56 allowEmpty: true,
57 sourceMap: false
58}), ApiDesignSystemsJsonParser({
59 allowEmpty: true,
60 sourceMap: false
61}), ApiDesignSystemsYamlParser({
62 allowEmpty: true,
63 sourceMap: false
64}), JsonParser({
65 allowEmpty: true,
66 sourceMap: false
67}), YamlParser({
68 allowEmpty: true,
69 sourceMap: false
70}), BinaryParser({
71 allowEmpty: true
72})];
73options.resolve.resolvers = [FileResolver(), HttpResolverAxios({
74 timeout: 5000,
75 redirects: 5,
76 withCredentials: false
77})];
78options.resolve.strategies = [OpenApi2ResolveStrategy(), OpenApi3_0ResolveStrategy(), OpenApi3_1ResolveStrategy(), AsyncApi2ResolveStrategy()];
79options.dereference.strategies = [OpenApi2DereferenceStrategy(), OpenApi3_0DereferenceStrategy(), OpenApi3_1DereferenceStrategy(), AsyncApi2DereferenceStrategy()];
80options.bundle.strategies = [OpenApi3_1BundleStrategy()];
81export * from "../index.mjs";
Note: See TracBrowser for help on using the repository browser.