forked from loafle/openapi-generator-original
[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:
parent
8eaeb2a1e7
commit
34a386c5a3
@ -148,7 +148,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|Uuid|✗|
|
|Uuid|✗|
|
||||||
|Array|✓|OAS2,OAS3
|
|Array|✓|OAS2,OAS3
|
||||||
|Null|✗|OAS3
|
|Null|✗|OAS3
|
||||||
|AnyType|✗|OAS2,OAS3
|
|AnyType|✓|OAS2,OAS3
|
||||||
|Object|✓|OAS2,OAS3
|
|Object|✓|OAS2,OAS3
|
||||||
|Maps|✓|ToolingExtension
|
|Maps|✓|ToolingExtension
|
||||||
|CollectionFormat|✓|OAS2
|
|CollectionFormat|✓|OAS2
|
||||||
@ -209,9 +209,9 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|Composite|✓|OAS2,OAS3
|
|Composite|✓|OAS2,OAS3
|
||||||
|Polymorphism|✗|OAS2,OAS3
|
|Polymorphism|✗|OAS2,OAS3
|
||||||
|Union|✗|OAS3
|
|Union|✗|OAS3
|
||||||
|allOf|✗|OAS2,OAS3
|
|allOf|✓|OAS2,OAS3
|
||||||
|anyOf|✗|OAS3
|
|anyOf|✓|OAS3
|
||||||
|oneOf|✗|OAS3
|
|oneOf|✓|OAS3
|
||||||
|not|✗|OAS3
|
|not|✗|OAS3
|
||||||
|
|
||||||
### Security Feature
|
### Security Feature
|
||||||
|
@ -87,6 +87,12 @@ public class GoClientCodegen extends AbstractGoCodegen {
|
|||||||
GlobalFeature.LinkObjects,
|
GlobalFeature.LinkObjects,
|
||||||
GlobalFeature.ParameterStyling
|
GlobalFeature.ParameterStyling
|
||||||
)
|
)
|
||||||
|
.includeSchemaSupportFeatures(
|
||||||
|
SchemaSupportFeature.anyOf,
|
||||||
|
SchemaSupportFeature.oneOf,
|
||||||
|
SchemaSupportFeature.allOf
|
||||||
|
|
||||||
|
)
|
||||||
.excludeSchemaSupportFeatures(
|
.excludeSchemaSupportFeatures(
|
||||||
SchemaSupportFeature.Polymorphism
|
SchemaSupportFeature.Polymorphism
|
||||||
)
|
)
|
||||||
@ -97,6 +103,9 @@ public class GoClientCodegen extends AbstractGoCodegen {
|
|||||||
ClientModificationFeature.BasePath,
|
ClientModificationFeature.BasePath,
|
||||||
ClientModificationFeature.UserAgent
|
ClientModificationFeature.UserAgent
|
||||||
)
|
)
|
||||||
|
.includeDataTypeFeatures(
|
||||||
|
DataTypeFeature.AnyType
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata).stability(Stability.STABLE).build();
|
generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata).stability(Stability.STABLE).build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user