Skip to content

Commit 5b76f37

Browse files
committed
feat(resolver): add support for modelPropertyMacro option
This change is specific to OpenAPI 3.1.0 strategy. Refs #2749
1 parent e1aaf54 commit 5b76f37

File tree

6 files changed

+332
-160
lines changed

6 files changed

+332
-160
lines changed

src/helpers/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ const OpenApi3_1SwaggerClientDereferenceStrategy = OpenApi3_1DereferenceStrategy
1313
useCircularStructures: true,
1414
allowMetaPatches: false,
1515
parameterMacro: null,
16+
modelPropertyMacro: null,
1617
},
1718
init({
1819
useCircularStructures = this.useCircularStructures,
1920
allowMetaPatches = this.allowMetaPatches,
2021
parameterMacro = this.parameterMacro,
22+
modelPropertyMacro = this.modelPropertyMacro,
2123
} = {}) {
2224
this.name = 'openapi-3-1-swagger-client';
2325
this.useCircularStructures = useCircularStructures;
2426
this.allowMetaPatches = allowMetaPatches;
2527
this.parameterMacro = parameterMacro;
28+
this.modelPropertyMacro = modelPropertyMacro;
2629
},
2730
methods: {
2831
async dereference(file, options) {
@@ -45,6 +48,7 @@ const OpenApi3_1SwaggerClientDereferenceStrategy = OpenApi3_1DereferenceStrategy
4548
useCircularStructures: this.useCircularStructures,
4649
allowMetaPatches: this.allowMetaPatches,
4750
parameterMacro: this.parameterMacro,
51+
modelPropertyMacro: this.modelPropertyMacro,
4852
});
4953
const dereferencedElement = await visitAsync(refSet.rootRef.value, visitor, {
5054
keyMap,

0 commit comments

Comments
 (0)