Skip to content

Commit

Permalink
[Go] Update generator docs to reflect supported features (#18044)
Browse files Browse the repository at this point in the history
* [Go] Update generator docs to reflect supported features

* update feature support in code
  • Loading branch information
ctreatma authored Mar 7, 2024
1 parent 8eaeb2a commit 34a386c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/generators/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|Uuid||
|Array|✓|OAS2,OAS3
|Null|✗|OAS3
|AnyType||OAS2,OAS3
|AnyType||OAS2,OAS3
|Object|✓|OAS2,OAS3
|Maps|✓|ToolingExtension
|CollectionFormat|✓|OAS2
Expand Down Expand Up @@ -209,9 +209,9 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|Composite|✓|OAS2,OAS3
|Polymorphism|✗|OAS2,OAS3
|Union|✗|OAS3
|allOf||OAS2,OAS3
|anyOf||OAS3
|oneOf||OAS3
|allOf||OAS2,OAS3
|anyOf||OAS3
|oneOf||OAS3
|not|✗|OAS3

### Security Feature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ public GoClientCodegen() {
GlobalFeature.LinkObjects,
GlobalFeature.ParameterStyling
)
.includeSchemaSupportFeatures(
SchemaSupportFeature.anyOf,
SchemaSupportFeature.oneOf,
SchemaSupportFeature.allOf

)
.excludeSchemaSupportFeatures(
SchemaSupportFeature.Polymorphism
)
Expand All @@ -97,6 +103,9 @@ public GoClientCodegen() {
ClientModificationFeature.BasePath,
ClientModificationFeature.UserAgent
)
.includeDataTypeFeatures(
DataTypeFeature.AnyType
)
);

generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata).stability(Stability.STABLE).build();
Expand Down

0 comments on commit 34a386c

Please sign in to comment.