You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the spring generator, the fields in the generated POJOs are annotated with @Schema(required = true | false), which is now deprecated. Instead, the requiredMode should be used.
@NotNull@Valid@Schema(name = "id", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("id")
privateUUIDid;
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) // or .AUTO, here I'm not sure which would be better@JsonProperty("name")
privateStringname;
Suggest a fix
Update the pojo.mustache file (plus anything that might be using the same annotation property).
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
When using the spring generator, the fields in the generated POJOs are annotated with
@Schema(required = true | false)
, which is now deprecated. Instead, therequiredMode
should be used.openapi-generator version
6.2.1
OpenAPI declaration file content or url
Actual output
Something along the lines of:
Expected output
Something along the lines of:
Suggest a fix
Update the pojo.mustache file (plus anything that might be using the same annotation property).
The text was updated successfully, but these errors were encountered: