@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.
Files changed (24) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +25 -24
  3. package/dist/apidom-ns-openapi-3-1.browser.js +221 -258
  4. package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
  5. package/package.json +8 -8
  6. package/src/index.cjs +35 -35
  7. package/src/index.mjs +1 -1
  8. package/src/refractor/plugins/{normalize-header-examples/index.cjs → normalize-header-examples.cjs} +5 -6
  9. package/src/refractor/plugins/{normalize-header-examples/index.mjs → normalize-header-examples.mjs} +4 -5
  10. package/src/refractor/plugins/normalize-operation-ids.cjs +3 -5
  11. package/src/refractor/plugins/normalize-operation-ids.mjs +2 -4
  12. package/src/refractor/plugins/normalize-parameter-examples.cjs +5 -6
  13. package/src/refractor/plugins/normalize-parameter-examples.mjs +4 -5
  14. package/src/refractor/plugins/normalize-parameters.cjs +48 -50
  15. package/src/refractor/plugins/normalize-parameters.mjs +48 -50
  16. package/src/refractor/plugins/normalize-security-requirements.cjs +21 -7
  17. package/src/refractor/plugins/normalize-security-requirements.mjs +20 -6
  18. package/src/refractor/plugins/normalize-servers.cjs +72 -49
  19. package/src/refractor/plugins/normalize-servers.mjs +70 -47
  20. package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.cjs → normalize-storage/index.cjs} +1 -1
  21. package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.mjs → normalize-storage/index.mjs} +1 -1
  22. package/src/refractor/toolbox.cjs +1 -29
  23. package/src/refractor/toolbox.mjs +1 -28
  24. 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: ({ storageField }?: RefractorPluginNormalizeParametersOptions) => (toolbox: Toolbox) => {
1609
- visitor: {
1610
- OpenApi3_1Element: {
1611
- enter(path: Path<OpenApi3_1Element>): void;
1612
- leave(): void;
1613
- };
1614
- PathItemElement: {
1615
- enter(path: Path<PathItemElement>): void;
1616
- leave(): void;
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: ({ storageField }?: RefractorPluginNormalizeSecurityRequirementsOptions) => (toolbox: Toolbox) => {
1644
- visitor: {
1645
- OpenApi3_1Element: {
1646
- enter(path: Path<OpenApi3_1Element>): void;
1647
- leave(): void;
1648
- };
1649
- OperationElement: {
1650
- leave(path: Path<OperationElement>): void;
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: ({ storageField }?: RefractorPluginNormalizeServersOptions) => (toolbox: Toolbox) => {
1676
- visitor: {
1677
- OpenApi3_1Element: {
1678
- enter(path: Path<OpenApi3_1Element>): void;
1679
- leave(): void;
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