1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-04 00:18:40 +01:00
unleash.unleash/src/lib/schema
Thomas Heartman 5a874df915
fix: trim role names before validation (#8277)
This trims role names before validation and subsequent validation.
This fixes a bug where you could have names that were empty or that
were duplicates of other names, but with leading or trailing
spaces. (They display the same in the UI).

This does not modify how we handle descriptions in the API. While the
UI form requires you to enter a description, the API does not. As
such, we can't make that required now without it being a breaking
change.
2024-09-26 11:52:51 +00:00
..
api-token-schema.test.ts
api-token-schema.ts
constraint-value-types.test.ts
constraint-value-types.ts
feature-schema.test.ts
feature-schema.ts feat: tag feature on creation (#7664) 2024-07-25 13:36:28 +03:00
role-schema.test.ts
role-schema.ts fix: trim role names before validation (#8277) 2024-09-26 11:52:51 +00:00