-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add jsonschema validation for backend (#15)
* feat: validation schema for sign up endpoint * style: 🎨 fix code style issues with Black * feat: validate email with email_validator * feat: schema validation for login * feat: schema validation for user details PUT * feat: POST, PUT schemas added for /study endpoint * feat: schema validation added for arm metadata * style: 🎨 fix code style issues with Black * feat: schema validation for available ipd * style: 🎨 fix code style issues with Black * feat: study contact schema validation added * feat: schema validation for collaborators * style: 🎨 fix code style issues with Black * feat: conditions schema validation added" * style: 🎨 fix code style issues with Black * feat: send better error message for invalid email * feat: schema validation for study description * feat: schema validation for study design * feat: schema validation for study intervention * schema validation for ipd sharing * feat: schema validation for study link * fix: fixed import typo * feat: schema validation for other metadata * feat: schema validation for study location * feat: schema validation for oversight endpoint * feat: schema validation for study reference * feat: schema validation for sponsors collaborators * feat: schema validate password meets all criterias on signup * wip: additional requirements/checks for schema validations * style: 🎨 fix code style issues with Black * feat: study design carries additional validations * feat: study contact carries additional validations * feat: study eligibility carries additional validations * feat: study intervention carries additional validations * feat: overal official has enums and other validations * feat: enums and other validations for location endpoint * feat: enums and additional validations for ipd sharing * feat: additional validations for study_status * feat: additional validations for study reference * feat: additional validations for available ipds * feat: enums added and additional validations for sponsor collaborators * additional enums and validations for study links * refactor: removed marshal_with for validation errors * feat: additional validations added for study contact * feat: enums added for enrollment_type in design endpoint * refactor: other metadata validation formatted * feat: minimum length added for validating sponsor collaborators * fix: remove double imports * refactor: isort imports * style: 🎨 fix code style issues with Black * feat: intervention schema validation added * feat: conditional requirements added to status metadata * feat: conditional validations added for sponsor collaborators * refactor: endpoint comment added * feat: additional validations for study identification * style: 🎨 fix code style issues with Black * feat: conditional validations and enums added for final endpoints * style: 🎨 fix code style issues with Black * fix: re-add study type for conditions endpoint * fix: remove last marshal_with on put, fix type def for data (overall-official) * fix: update pytest fixtures for validation schemas * style: 🎨 fix code style issues with Black * fix: updated pytests for schema validations * style: 🎨 fix code style issues with Black * fix: fix: invalid characters for regex * fix: update flake8 errors * style: 🎨 fix code style issues with Black * fix: update for flake8 errors * style: 🎨 fix code style issues with Black * fix: updating for flake8 issues * style: 🎨 fix code style issues with Black * fix: correct issues for pyflake8 * style: 🎨 fix code style issues with Black * fix: type def for request.json * fix: update for pylint issue * 🐛 fix: update schemas --------- Co-authored-by: Lint Action <[email protected]> Co-authored-by: Sanjay Soundarajan <[email protected]>
- Loading branch information
1 parent
1b4e46f
commit 5386ce2
Showing
32 changed files
with
1,444 additions
and
167 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
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.