@redocly/openapi-core 2.20.4 → 2.21.0
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/lib/decorators/common/filters/filter-in.d.ts +1 -1
- package/lib/decorators/common/filters/filter-in.d.ts.map +1 -1
- package/lib/decorators/common/filters/filter-in.js +54 -1
- package/lib/decorators/common/filters/filter-in.js.map +1 -1
- package/lib/decorators/common/filters/filter-out.d.ts +1 -1
- package/lib/decorators/common/filters/filter-out.d.ts.map +1 -1
- package/lib/decorators/common/filters/filter-out.js +54 -1
- package/lib/decorators/common/filters/filter-out.js.map +1 -1
- package/lib/decorators/oas2/index.d.ts +1 -1
- package/lib/decorators/oas2/index.d.ts.map +1 -1
- package/lib/decorators/oas2/index.js +1 -1
- package/lib/decorators/oas2/index.js.map +1 -1
- package/lib/decorators/oas3/index.d.ts +1 -1
- package/lib/decorators/oas3/index.d.ts.map +1 -1
- package/lib/decorators/oas3/index.js +1 -1
- package/lib/decorators/oas3/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-in.d.ts","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-in.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-in.d.ts","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-in.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAKhG,eAAO,MAAM,QAAQ,EAAE,aAAa,GAAG,aA4EtC,CAAC"}
|
|
@@ -1,7 +1,60 @@
|
|
|
1
|
+
import { isRef } from '../../../ref-utils.js';
|
|
2
|
+
import { isPlainObject } from '../../../utils/is-plain-object.js';
|
|
1
3
|
import { checkIfMatchByStrategy, filter } from './filter-helper.js';
|
|
2
4
|
const DEFAULT_STRATEGY = 'any';
|
|
3
|
-
export const FilterIn = ({ property, value, matchStrategy }) => {
|
|
5
|
+
export const FilterIn = ({ property, value, matchStrategy, applyTo: target, }) => {
|
|
4
6
|
const strategy = matchStrategy || DEFAULT_STRATEGY;
|
|
7
|
+
if (target !== undefined) {
|
|
8
|
+
if (target === 'Operation') {
|
|
9
|
+
const httpMethods = [
|
|
10
|
+
'get',
|
|
11
|
+
'post',
|
|
12
|
+
'put',
|
|
13
|
+
'delete',
|
|
14
|
+
'patch',
|
|
15
|
+
'options',
|
|
16
|
+
'head',
|
|
17
|
+
'trace',
|
|
18
|
+
'query',
|
|
19
|
+
];
|
|
20
|
+
return {
|
|
21
|
+
PathItem: {
|
|
22
|
+
enter(pathItem, ctx) {
|
|
23
|
+
for (const method of httpMethods) {
|
|
24
|
+
const operation = isRef(pathItem[method])
|
|
25
|
+
? ctx.resolve(pathItem[method]).node
|
|
26
|
+
: pathItem[method];
|
|
27
|
+
if (isPlainObject(operation)) {
|
|
28
|
+
const propertyValue = operation[property];
|
|
29
|
+
const shouldKeep = checkIfMatchByStrategy(propertyValue, value, strategy);
|
|
30
|
+
if (!shouldKeep) {
|
|
31
|
+
delete pathItem[method];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const hasOperations = httpMethods.some((method) => pathItem[method]) || pathItem.additionalOperations;
|
|
36
|
+
if (!hasOperations) {
|
|
37
|
+
delete ctx.parent[ctx.key];
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (target === 'PathItem') {
|
|
44
|
+
return {
|
|
45
|
+
PathItem: {
|
|
46
|
+
enter(pathItem, ctx) {
|
|
47
|
+
const propertyValue = pathItem[property];
|
|
48
|
+
const shouldKeep = checkIfMatchByStrategy(propertyValue, value, strategy);
|
|
49
|
+
if (!shouldKeep) {
|
|
50
|
+
delete ctx.parent[ctx.key];
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
throw new Error(`The 'target' option must be 'Operation' or 'PathItem' when provided.`);
|
|
57
|
+
}
|
|
5
58
|
const filterInCriteria = (item) => item?.[property] && !checkIfMatchByStrategy(item?.[property], value, strategy);
|
|
6
59
|
return {
|
|
7
60
|
any: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-in.js","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-in.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-in.js","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,CAAC,MAAM,QAAQ,GAAkC,CAAC,EACtD,QAAQ,EACR,KAAK,EACL,aAAa,EACb,OAAO,EAAE,MAAM,GAChB,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,aAAa,IAAI,gBAAgB,CAAC;IAEnD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;YAC3B,MAAM,WAAW,GAAG;gBAClB,KAAK;gBACL,MAAM;gBACN,KAAK;gBACL,QAAQ;gBACR,OAAO;gBACP,SAAS;gBACT,MAAM;gBACN,OAAO;gBACP,OAAO;aACC,CAAC;YAEX,OAAO;gBACL,QAAQ,EAAE;oBACR,KAAK,CAAC,QAAQ,EAAE,GAAG;wBACjB,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;4BACjC,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCACvC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA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AC,QAAQ,CAAC,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAEjF,OAAO;QACL,GAAG,EAAE;YACH,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;gBACnB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC;YACtC,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-out.d.ts","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-out.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-out.d.ts","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-out.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAKhG,eAAO,MAAM,SAAS,EAAE,aAAa,GAAG,aA8EvC,CAAC"}
|
|
@@ -1,7 +1,60 @@
|
|
|
1
|
+
import { isRef } from '../../../ref-utils.js';
|
|
2
|
+
import { isPlainObject } from '../../../utils/is-plain-object.js';
|
|
1
3
|
import { checkIfMatchByStrategy, filter } from './filter-helper.js';
|
|
2
4
|
const DEFAULT_STRATEGY = 'any';
|
|
3
|
-
export const FilterOut = ({ property, value, matchStrategy }) => {
|
|
5
|
+
export const FilterOut = ({ property, value, matchStrategy, applyTo: target, }) => {
|
|
4
6
|
const strategy = matchStrategy || DEFAULT_STRATEGY;
|
|
7
|
+
if (target !== undefined) {
|
|
8
|
+
if (target === 'Operation') {
|
|
9
|
+
const httpMethods = [
|
|
10
|
+
'get',
|
|
11
|
+
'post',
|
|
12
|
+
'put',
|
|
13
|
+
'delete',
|
|
14
|
+
'patch',
|
|
15
|
+
'options',
|
|
16
|
+
'head',
|
|
17
|
+
'trace',
|
|
18
|
+
'query',
|
|
19
|
+
];
|
|
20
|
+
return {
|
|
21
|
+
PathItem: {
|
|
22
|
+
enter(pathItem, ctx) {
|
|
23
|
+
for (const method of httpMethods) {
|
|
24
|
+
const operation = isRef(pathItem[method])
|
|
25
|
+
? ctx.resolve(pathItem[method]).node
|
|
26
|
+
: pathItem[method];
|
|
27
|
+
if (isPlainObject(operation)) {
|
|
28
|
+
const propertyValue = operation[property];
|
|
29
|
+
const shouldRemove = checkIfMatchByStrategy(propertyValue, value, strategy);
|
|
30
|
+
if (shouldRemove) {
|
|
31
|
+
delete pathItem[method];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const hasOperations = httpMethods.some((method) => pathItem[method]) || pathItem.additionalOperations;
|
|
36
|
+
if (!hasOperations) {
|
|
37
|
+
delete ctx.parent[ctx.key];
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (target === 'PathItem') {
|
|
44
|
+
return {
|
|
45
|
+
PathItem: {
|
|
46
|
+
enter(pathItem, ctx) {
|
|
47
|
+
const propertyValue = pathItem[property];
|
|
48
|
+
const shouldRemove = checkIfMatchByStrategy(propertyValue, value, strategy);
|
|
49
|
+
if (shouldRemove) {
|
|
50
|
+
delete ctx.parent[ctx.key];
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
throw new Error(`The 'target' option must be 'Operation' or 'PathItem' when provided.`);
|
|
57
|
+
}
|
|
5
58
|
const filterOutCriteria = (item) => checkIfMatchByStrategy(item?.[property], value, strategy);
|
|
6
59
|
return {
|
|
7
60
|
any: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-out.js","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-out.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter-out.js","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-out.ts"],"names":[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
|
'remove-x-internal': Oas2Decorator;
|
|
8
|
-
'remove-unused-components': Oas2Decorator;
|
|
9
8
|
'filter-in': Oas2Decorator;
|
|
10
9
|
'filter-out': Oas2Decorator;
|
|
10
|
+
'remove-unused-components': Oas2Decorator;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/oas2/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAUvD,eAAO,MAAM,UAAU;sCAC6C,aAAa;gCACzB,aAAa;iCACX,aAAa;qBACpC,aAAa;yBACN,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/oas2/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAUvD,eAAO,MAAM,UAAU;sCAC6C,aAAa;gCACzB,aAAa;iCACX,aAAa;qBACpC,aAAa;yBACN,aAAa;iBAC5B,aAAa;kBACX,aAAa;;CAEzC,CAAC"}
|
|
@@ -12,8 +12,8 @@ export const decorators = {
|
|
|
12
12
|
'info-description-override': InfoDescriptionOverride,
|
|
13
13
|
'info-override': InfoOverride,
|
|
14
14
|
'remove-x-internal': RemoveXInternal,
|
|
15
|
-
'remove-unused-components': RemoveUnusedComponents,
|
|
16
15
|
'filter-in': FilterIn,
|
|
17
16
|
'filter-out': FilterOut,
|
|
17
|
+
'remove-unused-components': RemoveUnusedComponents, // always the last one
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/oas2/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,SAA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AAyB;IACtC,YAAY,EAAE,SAA0B;IACxC,0BAA0B,EAAE,sBAAsB,EAAE,sBAAsB;CAC3E,CAAC"}
|
|
@@ -5,9 +5,9 @@ export declare const decorators: {
|
|
|
5
5
|
'info-description-override': Oas3Decorator;
|
|
6
6
|
'info-override': Oas3Decorator;
|
|
7
7
|
'remove-x-internal': Oas3Decorator;
|
|
8
|
-
'remove-unused-components': Oas3Decorator;
|
|
9
8
|
'filter-in': Oas3Decorator;
|
|
10
9
|
'filter-out': Oas3Decorator;
|
|
11
10
|
'media-type-examples-override': Oas3Decorator;
|
|
11
|
+
'remove-unused-components': Oas3Decorator;
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/oas3/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/oas3/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAWvD,eAAO,MAAM,UAAU;sCAC6C,aAAa;gCACzB,aAAa;iCACX,aAAa;qBACpC,aAAa;yBACN,aAAa;iBAC5B,aAAa;kBACX,aAAa;oCACqB,aAAa;;CAE3E,CAAC"}
|
|
@@ -13,9 +13,9 @@ export const decorators = {
|
|
|
13
13
|
'info-description-override': InfoDescriptionOverride,
|
|
14
14
|
'info-override': InfoOverride,
|
|
15
15
|
'remove-x-internal': RemoveXInternal,
|
|
16
|
-
'remove-unused-components': RemoveUnusedComponents,
|
|
17
16
|
'filter-in': FilterIn,
|
|
18
17
|
'filter-out': FilterOut,
|
|
19
18
|
'media-type-examples-override': MediaTypeExamplesOverride,
|
|
19
|
+
'remove-unused-components': RemoveUnusedComponents, // always the last one
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/oas3/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/oas3/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,gCAAgC,EAAE,4BAA6C;IAC/E,0BAA0B,EAAE,sBAAuC;IACnE,2BAA2B,EAAE,uBAAwC;IACrE,eAAe,EAAE,YAA6B;IAC9C,mBAAmB,EAAE,eAAgC;IACrD,WAAW,EAAE,QAAyB;IACtC,YAAY,EAAE,SAA0B;IACxC,8BAA8B,EAAE,yBAA0C;IAC1E,0BAA0B,EAAE,sBAAsB,EAAE,sBAAsB;CAC3E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@redocly/ajv": "^8.18.0",
|
|
56
|
-
"@redocly/config": "^0.44.
|
|
56
|
+
"@redocly/config": "^0.44.1",
|
|
57
57
|
"ajv": "npm:@redocly/ajv@8.18.0",
|
|
58
58
|
"ajv-formats": "^3.0.1",
|
|
59
59
|
"colorette": "^1.2.0",
|