Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a requirement to change camelcase to snake_case properties. Is that possible? #113

Open
rolfwessels opened this issue Apr 21, 2020 · 0 comments

Comments

@rolfwessels
Copy link

Currently the output is as follows

properties:
            version:
                type: string
            serviceStartDate:
                type: string

I need it to be

properties:
            version:
                type: string
            service_start_date:
                type: string

I know I can rename the properties but I would like to automate this if possible.
Something like swaggerConfig.json

...
  "swagger": {
    "outputFormat": "openapi_3",
    "propertyNameTransformer": "toSnakeCase",
}

Does this feature exist? Or if you point me to the right place I can have a look at implementing something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant