-
-
Notifications
You must be signed in to change notification settings - Fork 723
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## About the changes Create api token schema can either provide the field `project` or its plural: `projects` so the joi validation makes them optional: https://github.com/Unleash/unleash/blob/2be77fb55ee85e18648afa455fbcee6b4d568f9d/src/lib/schema/api-token-schema.ts#L20-L24 This means that when returning the token, the response will either contain `project` or `projects` depending on what was provided as input. Therefore we need to make both fields optional in the response
- Loading branch information
1 parent
2be77fb
commit fe51b50
Showing
2 changed files
with
1 addition
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters