Skip to content

Comments

Add Java enums for API constant fields#8

Merged
Fivell merged 1 commit intomainfrom
enums
Feb 19, 2026
Merged

Add Java enums for API constant fields#8
Fivell merged 1 commit intomainfrom
enums

Conversation

@Fivell
Copy link
Member

@Fivell Fivell commented Feb 19, 2026

Replace String/Integer types with type-safe enums for all fields with fixed allowed values: CliFormat, MediaEncryptionMode, StirShakenMode, OnCliMismatchAction, DefaultDstAction, VoiceOutTrunkStatus, IdentityType, CallbackMethod, ExportType, OrderStatus, AddressVerificationStatus, ExportStatus, Feature, TransportProtocol, SstRefreshMethod, RxDtmfFormat, TxDtmfFormat, and Codec. Also adds mediaEncryptionMode and stirShakenMode fields to SipConfiguration.

Replace String/Integer types with enums for all fields with fixed
allowed values. String enums use standard @JsonProperty annotations,
integer enums use IntEnum interface with custom EnumModule deserializer.
Unknown enum values from the API return null instead of crashing
(READ_UNKNOWN_ENUM_VALUES_AS_NULL).

Enums: CliFormat, MediaEncryptionMode, StirShakenMode, OnCliMismatchAction,
DefaultDstAction, VoiceOutTrunkStatus, IdentityType, CallbackMethod,
ExportType, OrderStatus, AddressVerificationStatus, ExportStatus, Feature,
TransportProtocol, SstRefreshMethod, RxDtmfFormat, TxDtmfFormat, Codec.
@Fivell Fivell merged commit 63f783f into main Feb 19, 2026
2 checks passed
@Fivell Fivell deleted the enums branch February 19, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant