-
-
Notifications
You must be signed in to change notification settings - Fork 577
Open
Description
"components": {
"schemas": {
"UnloadAmountRequest": {
"type": "object",
"properties": {
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"description": {
"type": "string"
},
"transactionReference": {
"type": "string",
"maxLength": 40,
"minLength": 0,
"pattern": "^[a-zA-Z0-9-]+$"
}
},
"required": [
"amount"
]
},
public record UnloadAmountRequest(
@NotNull @Positive BigDecimal amount,
@Nullable String currency,
@Nullable String description,
@Nullable
@Size(max = 40)
@Pattern(regexp = "^[a-zA-Z0-9-]+$", message = "Only letters, digits and '-' are allowed")
String transactionReference
) {
}
https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-bom/3.0.1
Metadata
Metadata
Assignees
Labels
No labels