Skip to content

Ensure enums serialize as integers in WebAuthn endpoints - #14

Open
dinc5150 wants to merge 2 commits into
NikRimington:dev/v2from
DigitalMomentum:fix/Enums-as-integers
Open

Ensure enums serialize as integers in WebAuthn endpoints#14
dinc5150 wants to merge 2 commits into
NikRimington:dev/v2from
DigitalMomentum:fix/Enums-as-integers

Conversation

@dinc5150

Copy link
Copy Markdown

Added EnumAsIntegerJsonAttribute to force integer enum serialization in key WebAuthnController endpoints, overriding global JSON settings.

This guarantees consistent enum representation in API responses even when the default serializer converter has been set differently on startup.

dinc5150 added 2 commits June 26, 2026 09:21
Added EnumAsIntegerJsonAttribute to force integer enum serialization in key WebAuthnController endpoints, overriding global JSON settings. This guarantees consistent enum representation in API responses.
Updated test code to use the null-forgiving operator (`!`) when passing null to non-nullable parameters, preventing unnecessary nullable reference type warnings from the compiler.
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