@speclynx/apidom-ns-openapi-3-1 4.0.5 → 4.2.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/CHANGELOG.md +13 -0
- package/README.md +25 -24
- package/dist/apidom-ns-openapi-3-1.browser.js +221 -258
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +35 -35
- package/src/index.mjs +1 -1
- package/src/refractor/plugins/{normalize-header-examples/index.cjs → normalize-header-examples.cjs} +5 -6
- package/src/refractor/plugins/{normalize-header-examples/index.mjs → normalize-header-examples.mjs} +4 -5
- package/src/refractor/plugins/normalize-operation-ids.cjs +3 -5
- package/src/refractor/plugins/normalize-operation-ids.mjs +2 -4
- package/src/refractor/plugins/normalize-parameter-examples.cjs +5 -6
- package/src/refractor/plugins/normalize-parameter-examples.mjs +4 -5
- package/src/refractor/plugins/normalize-parameters.cjs +48 -50
- package/src/refractor/plugins/normalize-parameters.mjs +48 -50
- package/src/refractor/plugins/normalize-security-requirements.cjs +21 -7
- package/src/refractor/plugins/normalize-security-requirements.mjs +20 -6
- package/src/refractor/plugins/normalize-servers.cjs +72 -49
- package/src/refractor/plugins/normalize-servers.mjs +70 -47
- package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.cjs → normalize-storage/index.cjs} +1 -1
- package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.mjs → normalize-storage/index.mjs} +1 -1
- package/src/refractor/toolbox.cjs +1 -29
- package/src/refractor/toolbox.mjs +1 -28
- package/types/apidom-ns-openapi-3-1.d.ts +34 -39
|
@@ -287,17 +287,6 @@ export { AlternatingVisitor }
|
|
|
287
287
|
|
|
288
288
|
export { AlternatingVisitorOptions }
|
|
289
289
|
|
|
290
|
-
/**
|
|
291
|
-
* Translates visitor ancestor lineage to a JSON Pointer tokens.
|
|
292
|
-
* Ancestor lineage is constructed of following visitor method arguments:
|
|
293
|
-
*
|
|
294
|
-
* - ancestors
|
|
295
|
-
* - parent
|
|
296
|
-
* - element
|
|
297
|
-
* @public
|
|
298
|
-
*/
|
|
299
|
-
export declare const ancestorLineageToJSONPointer: <T extends (Element_2 | Element_2[])[]>(elementPath: T) => string;
|
|
300
|
-
|
|
301
290
|
/**
|
|
302
291
|
* @public
|
|
303
292
|
*/
|
|
@@ -1605,20 +1594,19 @@ export declare interface RefractorPluginNormalizeParameterExamplesOptions {
|
|
|
1605
1594
|
/**
|
|
1606
1595
|
* @public
|
|
1607
1596
|
*/
|
|
1608
|
-
export declare const refractorPluginNormalizeParameters:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
OperationElement: {
|
|
1619
|
-
leave(path: Path<OperationElement>): void;
|
|
1597
|
+
export declare const refractorPluginNormalizeParameters: {
|
|
1598
|
+
({ storageField }?: RefractorPluginNormalizeParametersOptions): (toolbox: Toolbox) => {
|
|
1599
|
+
visitor: {
|
|
1600
|
+
OpenApi3_1Element: {
|
|
1601
|
+
enter(path: Path<OpenApi3_1Element>): void;
|
|
1602
|
+
leave(): void;
|
|
1603
|
+
};
|
|
1604
|
+
OperationElement: {
|
|
1605
|
+
leave(path: Path<OperationElement>): void;
|
|
1606
|
+
};
|
|
1620
1607
|
};
|
|
1621
1608
|
};
|
|
1609
|
+
inheritParametersToOperation: (operationElement: OperationElement, pathItemElement: PathItemElement) => void;
|
|
1622
1610
|
};
|
|
1623
1611
|
|
|
1624
1612
|
/**
|
|
@@ -1640,16 +1628,19 @@ export declare interface RefractorPluginNormalizeParametersOptions {
|
|
|
1640
1628
|
/**
|
|
1641
1629
|
* @public
|
|
1642
1630
|
*/
|
|
1643
|
-
export declare const refractorPluginNormalizeSecurityRequirements:
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1631
|
+
export declare const refractorPluginNormalizeSecurityRequirements: {
|
|
1632
|
+
({ storageField }?: RefractorPluginNormalizeSecurityRequirementsOptions): (toolbox: Toolbox) => {
|
|
1633
|
+
visitor: {
|
|
1634
|
+
OpenApi3_1Element: {
|
|
1635
|
+
enter(path: Path<OpenApi3_1Element>): void;
|
|
1636
|
+
leave(): void;
|
|
1637
|
+
};
|
|
1638
|
+
OperationElement: {
|
|
1639
|
+
leave(path: Path<OperationElement>): void;
|
|
1640
|
+
};
|
|
1651
1641
|
};
|
|
1652
1642
|
};
|
|
1643
|
+
inheritSecurityToOperation: (operationElement: OperationElement, openapiElement: OpenApi3_1Element) => void;
|
|
1653
1644
|
};
|
|
1654
1645
|
|
|
1655
1646
|
/**
|
|
@@ -1672,15 +1663,20 @@ export declare interface RefractorPluginNormalizeSecurityRequirementsOptions {
|
|
|
1672
1663
|
/**
|
|
1673
1664
|
* @public
|
|
1674
1665
|
*/
|
|
1675
|
-
export declare const refractorPluginNormalizeServers:
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1666
|
+
export declare const refractorPluginNormalizeServers: {
|
|
1667
|
+
({ storageField }?: RefractorPluginNormalizeServersOptions): (toolbox: Toolbox) => {
|
|
1668
|
+
visitor: {
|
|
1669
|
+
OpenApi3_1Element: {
|
|
1670
|
+
enter(path: Path<OpenApi3_1Element>): void;
|
|
1671
|
+
leave(): void;
|
|
1672
|
+
};
|
|
1673
|
+
PathItemElement(path: Path<PathItemElement>): void;
|
|
1674
|
+
OperationElement(path: Path<OperationElement>): void;
|
|
1680
1675
|
};
|
|
1681
|
-
PathItemElement(path: Path<PathItemElement>): void;
|
|
1682
|
-
OperationElement(path: Path<OperationElement>): void;
|
|
1683
1676
|
};
|
|
1677
|
+
ensureDefaultServer: (openapiElement: OpenApi3_1Element) => void;
|
|
1678
|
+
inheritServersToPathItem: (pathItemElement: PathItemElement, openapiElement: OpenApi3_1Element) => void;
|
|
1679
|
+
inheritServersToOperation: (operationElement: OperationElement, pathItemElement: PathItemElement) => void;
|
|
1684
1680
|
};
|
|
1685
1681
|
|
|
1686
1682
|
/**
|
|
@@ -2852,7 +2848,6 @@ export { TagVisitorOptions }
|
|
|
2852
2848
|
*/
|
|
2853
2849
|
export declare interface Toolbox {
|
|
2854
2850
|
predicates: Record<string, (...args: any[]) => boolean>;
|
|
2855
|
-
ancestorLineageToJSONPointer: typeof ancestorLineageToJSONPointer;
|
|
2856
2851
|
namespace: Namespace;
|
|
2857
2852
|
}
|
|
2858
2853
|
|