-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tags validation code to json schema
Currently we have lot of validation code inside server tag controller class which can be moved to json schema. Same can be reused on other place also. For example, microversion 2.40 adds server tag while boot. Same schema can be used there. Current python code validation shows conceret error message about each tag where using json schema error msg will be like below- For requesting tags more than max limit: Invalid input for field/attribute tags. Value: ['0', '1', '2', '3', '4', '5', '6', ...] is too long For requesting tags more than char limit: Invalid input for field/attribute 0. Value: aaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa. 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is too long I think those error message are clear enough to understand the wrong tags. Change-Id: I457cf630aeae9034c0b175d016148a1d50a0b469
- Loading branch information
Showing
4 changed files
with
12 additions
and
44 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
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