Skip to content

Support @OpenApiNaming as an alternative to @JsonNaming #183

Open
@dzikoysk

Description

@dzikoysk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions