Derive Name
from DisplayName
#2943
Labels
good first issue
Good for newcomers
P2
Nice to fix: non-critical items that should be evaluated and planned during issue triage
user-story
Please describe the enhancement
Name
is required to be in a specific format, whereasDisplayName
is more freeform. When creating something new (such as a profile) using the API, the caller needs to have a display name, and will possibly derive the name by doing certain transformation (regexp replace, trim, etc) on the display name.This means that clients of the API might implement this logic in different ways, and the logic is duplicated within the ecosystem, increasing the overall complexity in the ecosystem.
Solution Proposal
The logic to derive Name from DisplayName could be moved to all POST endpoints in the API. This would mean that the clients don't need to directly supply the Name value when creating a new object from scratch, and this logic could be removed from all client code.
Describe alternatives you've considered
No response
Additional context
No response
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered: