Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status_details should have a sibling enum attribute #1024

Open
pagbabian-splunk opened this issue Apr 9, 2024 · 0 comments
Open

status_details should have a sibling enum attribute #1024

pagbabian-splunk opened this issue Apr 9, 2024 · 0 comments

Comments

@pagbabian-splunk
Copy link
Contributor

Currently, we have 4 status related attributes: status_id, status, status_code, status_details. not counting http_status which is tied to the spec.

status_details should have a sibling enum attribute that can be defined within specific classes, with a 'See specific usage` description clause.

The example that exemplified this is in the Authentication class where we suggest via description examples, status_details values:
For status_id = "Failure"

USER_DOES_NOT_EXIST
INVALID_CREDENTIALS
ACCOUNT_DISABLED
ACCOUNT_LOCKED_OUT
PASSWORD_EXPIRED

For status_id = "Success"

LOGOFF_USER_INITIATED
LOGOFF_OTHER

Some of these may be common and could be enum values, especially for the Failure cases. In fact, we don't have any normalized way to represent some of these common cases. We would as always still have an Other case.

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

No branches or pull requests

1 participant