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

Support @OpenApiNaming as an alternative to @JsonNaming #183

Open
dzikoysk opened this issue Apr 26, 2023 · 0 comments
Open

Support @OpenApiNaming as an alternative to @JsonNaming #183

dzikoysk opened this issue Apr 26, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dzikoysk
Copy link
Member

dzikoysk commented Apr 26, 2023

Feature
Support naming strategies:

  • Default (1:1 to field name)
  • Kebab case
  • Snake case

More about @JsonNaming:

Example

It should cover scenarios like:

public record Employee (
  @JsonProperty("first_name") String firstName,
  @JsonProperty("last_name") String lastName
) {}

with:

@OpenApiNaming(SNAKE_CASE)
public record Employee (
  String firstName,
  String lastName
) {}

~ Reported on Javalin's Discord.

@dzikoysk dzikoysk added enhancement New feature or request help wanted Extra attention is needed labels Apr 26, 2023
@dzikoysk dzikoysk changed the title Support OpenApiNaming as an alternative to @JsonNaming Support @OpenApiNaming as an alternative to @JsonNaming Apr 26, 2023
@dzikoysk dzikoysk moved this from 🆕 New to 📋 Backlog in Javalin OpenApi Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant