Closed Gustl22 closed 3 months ago
Added 3 new option to customize separators:
|`*micronaut.openapi.schema.name.separator.empty*` | If this property true, generic separators and inner class separators in schema name will be empty string. | Default: `false`
|`*micronaut.openapi.schema.name.separator.generic*` | System property that set generic class separator for schema name generation. | Default: `_`
|`*micronaut.openapi.schema.name.separator.inner-class*` | System property that set inner class separator for schema name generation. | Default: `.`
I think, it is enought
Feature description
From the AWS specs: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-known-issues.html#api-gateway-known-issues-rest-apis
Model names can only contain alphanumeric characters.
Which means, the generated schema:
is not valid for AWS.
Which results in:
I tried to change the schemas naming via: https://micronaut-projects.github.io/micronaut-openapi/latest/guide/#schemasNaming
but this only affects the
properties
and not theschemas
.Proposal:
So I propose to add the option to change the naming strategy for schemas, too:
Reference: https://stackoverflow.com/questions/37572531/amazon-api-gateway-import-from-swagger-error-not-taking-generics