@ama-openapi/redocly-plugin 13.5.0-prerelease.22 → 13.5.0-prerelease.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +7 -7
- package/src/plugin.mjs +2 -2
- package/src/plugin.mjs.map +1 -1
- package/src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.d.mts +1 -1
- package/src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.d.mts.map +1 -1
- package/src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.mjs +1 -1
- package/src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.mjs.map +1 -1
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ The following environment variables are supported:
|
|
|
110
110
|
|
|
111
111
|
The plugin offer additional [Redocly decorator](https://redocly.com/docs/cli/decorators) which can be selected and configured in [Redocly configuration](https://redocly.com/docs/cli/rules/configure-rules).
|
|
112
112
|
|
|
113
|
-
The full list of available decorators, along with their options, is provided in the [dedicated documentation](https://github.com/AmadeusITGroup/otter/blob/main/docs/
|
|
113
|
+
The full list of available decorators, along with their options, is provided in the [dedicated documentation](https://github.com/AmadeusITGroup/otter/blob/main/docs/openapi/DECORATORS.md).
|
|
114
114
|
|
|
115
115
|
## Integration
|
|
116
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-openapi/redocly-plugin",
|
|
3
|
-
"version": "13.5.0-prerelease.
|
|
3
|
+
"version": "13.5.0-prerelease.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"postbuild": "patch-package-json-main"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ama-openapi/core": "~13.5.0-prerelease.
|
|
33
|
+
"@ama-openapi/core": "~13.5.0-prerelease.24",
|
|
34
34
|
"dotenv": "~17.2.3",
|
|
35
35
|
"tslib": "^2.6.2",
|
|
36
36
|
"yargs": "~18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@o3r/telemetry": "~13.5.0-prerelease.
|
|
39
|
+
"@o3r/telemetry": "~13.5.0-prerelease.24",
|
|
40
40
|
"@redocly/openapi-core": "^2.11.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"@nx/eslint-plugin": "~21.6.0",
|
|
55
55
|
"@nx/jest": "~21.6.0",
|
|
56
56
|
"@nx/js": "~21.6.0",
|
|
57
|
-
"@o3r/build-helpers": "~13.5.0-prerelease.
|
|
58
|
-
"@o3r/eslint-plugin": "~13.5.0-prerelease.
|
|
59
|
-
"@o3r/telemetry": "~13.5.0-prerelease.
|
|
60
|
-
"@o3r/test-helpers": "~13.5.0-prerelease.
|
|
57
|
+
"@o3r/build-helpers": "~13.5.0-prerelease.24",
|
|
58
|
+
"@o3r/eslint-plugin": "~13.5.0-prerelease.24",
|
|
59
|
+
"@o3r/telemetry": "~13.5.0-prerelease.24",
|
|
60
|
+
"@o3r/test-helpers": "~13.5.0-prerelease.24",
|
|
61
61
|
"@redocly/openapi-core": "~2.11.0",
|
|
62
62
|
"@stylistic/eslint-plugin": "~5.6.0",
|
|
63
63
|
"@types/jest": "~29.5.2",
|
package/src/plugin.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { config, } from 'dotenv';
|
|
2
2
|
import { ENVIRONMENT_VARIABLE_PREFIX, } from './constants.mjs';
|
|
3
3
|
import { DECORATOR_ID_REDIRECT_REF, redirectRefsDecorator, } from './plugins/decorators/common/replace-refs/replace-refs.decorator.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { DECORATOR_ID_REMOVE_UNUSED_COMPONENTS, removeUnusedComponentsDecorator, } from './plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.mjs';
|
|
5
5
|
import { retrieveDependency, } from './plugins/meta/retrieve-dependency.meta.mjs';
|
|
6
6
|
const DEFAULT_OPTIONS = 'error';
|
|
7
7
|
/**
|
|
@@ -24,7 +24,7 @@ export const amaOpenapiPlugin = async (options) => {
|
|
|
24
24
|
},
|
|
25
25
|
oas3: {
|
|
26
26
|
[DECORATOR_ID_REDIRECT_REF]: redirectRefsDecorator,
|
|
27
|
-
[
|
|
27
|
+
[DECORATOR_ID_REMOVE_UNUSED_COMPONENTS]: removeUnusedComponentsDecorator
|
|
28
28
|
},
|
|
29
29
|
async2: {
|
|
30
30
|
[DECORATOR_ID_REDIRECT_REF]: redirectRefsDecorator
|
package/src/plugin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.mjs","sourceRoot":"","sources":["../../src/plugin.mts"],"names":[],"mappings":"AAMA,OAAO,EACL,MAAM,GACP,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"plugin.mjs","sourceRoot":"","sources":["../../src/plugin.mts"],"names":[],"mappings":"AAMA,OAAO,EACL,MAAM,GACP,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EACL,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,2FAA2F,CAAC;AACnG,OAAO,EACL,kBAAkB,GAEnB,MAAM,6CAA6C,CAAC;AAErD,MAAM,eAAe,GAAa,OAAO,CAAC;AAM1C;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,OAAiC,EAAmB,EAAE;IAC3F,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAExC,MAAM,EACJ,CAAC,GAAG,2BAA2B,UAAU,CAAC,EAAE,OAAO,EACnD,CAAC,GAAG,2BAA2B,QAAQ,CAAC,EAAE,KAAK,EAC/C,CAAC,GAAG,2BAA2B,oBAAoB,CAAC,EAAE,eAAe,EACtE,GAAG,OAAO,CAAC,GAAG,CAAC;IAEhB,MAAM,kBAAkB,CAAC;QACvB,QAAQ,EAAE,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,QAAQ,IAAI,eAAe,CAAC;QAC/E,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,IAAI,KAAK;QACzD,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,eAAe,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,eAAe,IAAI,KAAK;KAClG,CAAC,CAAC;IAEH,OAAO;QACL,EAAE,EAAE,aAAa;QACjB,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,CAAC,yBAAyB,CAAC,EAAE,qBAAqB;aACnD;YACD,IAAI,EAAE;gBACJ,CAAC,yBAAyB,CAAC,EAAE,qBAAqB;gBAClD,CAAC,qCAAqC,CAAC,EAAE,+BAA+B;aACzE;YACD,MAAM,EAAE;gBACN,CAAC,yBAAyB,CAAC,EAAE,qBAAqB;aACnD;YACD,MAAM,EAAE;gBACN,CAAC,yBAAyB,CAAC,EAAE,qBAAqB;aACnD;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Oas3Preprocessor } from '@redocly/openapi-core';
|
|
2
2
|
/** Name of the removeUnusedComponents custom decorator */
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const DECORATOR_ID_REMOVE_UNUSED_COMPONENTS = "remove-unused-components";
|
|
4
4
|
/**
|
|
5
5
|
* This decorator remove the components not referred in the bundled specification
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-unused-components.decorator.d.mts","sourceRoot":"","sources":["../../../../../../src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.mts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,uBAAuB,CAAC;AAE/B,0DAA0D;AAC1D,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"remove-unused-components.decorator.d.mts","sourceRoot":"","sources":["../../../../../../src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.mts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,uBAAuB,CAAC;AAE/B,0DAA0D;AAC1D,eAAO,MAAM,qCAAqC,6BAA6B,CAAC;AAEhF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,EAAE,gBA+F7C,CAAC"}
|
package/src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { logger, } from '@redocly/openapi-core';
|
|
2
2
|
/** Name of the removeUnusedComponents custom decorator */
|
|
3
|
-
export const
|
|
3
|
+
export const DECORATOR_ID_REMOVE_UNUSED_COMPONENTS = 'remove-unused-components';
|
|
4
4
|
/**
|
|
5
5
|
* This decorator remove the components not referred in the bundled specification
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-unused-components.decorator.mjs","sourceRoot":"","sources":["../../../../../../src/plugins/decorators/oas3/remove-unused-components/remove-unused-components.decorator.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,GAGP,MAAM,uBAAuB,CAAC;AAE/B,0DAA0D;AAC1D,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"remove-unused-components.decorator.mjs","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