-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: report correct errors for json schema validation (#3085)
- Implemented the translation of `jsonschema.ValidationError` to errors codes documented [here](https://www.ory.sh/docs/kratos/concepts/ui-user-interface#machine-readable-format) - Added missing error codes for relevant schema errors | Validation | Name | ID | | ------------------ | ------------------------------- | ------- | | `maxLength` | ErrorValidationMaxLength | 4000017 | | `minimum` | ErrorValidationMinimum. | 4000018 | | `exclusiveMinimum` | ErrorValidationExclusiveMinimum | 4000019 | | `maximum` | ErrorValidationMaximum | 4000020 | | `exclusiveMaximum` | ErrorValidationExclusiveMaximum | 4000021 | | `multipleOf` | ErrorValidationMultipleOf | 4000022 | | `maxItems` | ErrorValidationMaxItems | 4000023 | | `minItems` | ErrorValidationMinItems | 4000024 | | `uniqueItems` | ErrorValidationUniqueItems | 4000025 | | `type` | ErrorValidationWrongType | 4000026 | - Updated e2e tests to check these IDs explicitly
- Loading branch information
1 parent
74ae852
commit 9477ea4
Showing
10 changed files
with
279 additions
and
55 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
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
Oops, something went wrong.