[Go] Update generator docs to reflect supported features (#18044)

* [Go] Update generator docs to reflect supported features

* update feature support in code
This commit is contained in:
Charles Treatman 2024-03-06 20:36:08 -06:00 committed by GitHub
parent 8eaeb2a1e7
commit 34a386c5a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 4 deletions

View File

@ -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
@ -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

View File

@ -87,6 +87,12 @@ public class GoClientCodegen extends AbstractGoCodegen {
GlobalFeature.LinkObjects,
GlobalFeature.ParameterStyling
)
.includeSchemaSupportFeatures(
SchemaSupportFeature.anyOf,
SchemaSupportFeature.oneOf,
SchemaSupportFeature.allOf
)
.excludeSchemaSupportFeatures(
SchemaSupportFeature.Polymorphism
)
@ -97,6 +103,9 @@ public class GoClientCodegen extends AbstractGoCodegen {
ClientModificationFeature.BasePath,
ClientModificationFeature.UserAgent
)
.includeDataTypeFeatures(
DataTypeFeature.AnyType
)
);
generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata).stability(Stability.STABLE).build();