Closed jskov-jyskebank-dk closed 5 months ago
This schema contains adresseId which is both required and nullable:
adresseId
AdresseIdentifikationDto: title: Adresseindentifikation required: - adgangsadresseId - adresseId type: object properties: adresseId: type: string format: uuid nullable: true adgangsadresseId: type: string format: uuid additionalProperties: false
The code generated is:
@JsonProperty(JSON_PROPERTY_ADRESSE_ID) @Schema(required = false, nullable = true) private UUID adresseId; ... @NotNull public UUID getAdresseId() { return adresseId; }
Deserialization fails when the field is present and null.
Should not be marked @NotNull, should have correct required=true+nullable=true in the @Schema
(Per)
This schema contains
adresseId
which is both required and nullable:The code generated is:
Deserialization fails when the field is present and null.
Should not be marked @NotNull, should have correct required=true+nullable=true in the @Schema
(Per)