javalin / javalin-openapi

Annotation processor for compile-time OpenAPI & JsonSchema, with out-of-the-box support for Javalin 5.x, Swagger & ReDoc
https://github.com/javalin/javalin-openapi/wiki
Apache License 2.0
45 stars 17 forks source link

Support `@OpenApiNaming` as an alternative to `@JsonNaming` #183

Open dzikoysk opened 1 year ago

dzikoysk commented 1 year ago

Feature Support naming strategies:

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.