23 lines
581 B
OpenEdge ABL
23 lines
581 B
OpenEdge ABL
namespace tests.idl.simple
|
|
|
|
const DEFAULT_NAME: str = "flower"
|
|
|
|
settings Test {
|
|
forbid_optional_indexing=True
|
|
}
|
|
|
|
struct Message {
|
|
1# name: str = DEFAULT_NAME
|
|
2# optional recipient: str[validators=StringBounds(min_chars=3 max_chars=12)] = "bee"
|
|
}
|
|
|
|
error RecipientNotFoundError {
|
|
message = "Recipient with name {self.recipient} not found"
|
|
1# recipient: str[validators=StringBounds(min_chars=8 max_chars=16)]
|
|
}
|
|
|
|
protocol Mail provider=Both {
|
|
1# function send_message(message: Message) -> str ! NotFoundError[function.message.recipient]
|
|
: timeout_ms=1000
|
|
}
|