Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derek furst/constraints #711

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Derek furst/constraints #711

merged 2 commits into from
Aug 2, 2024

Conversation

DerekFurstPitt
Copy link
Contributor

Added validator to confirm json body for constraints endpoint matches expected format.

Specific values and fields are validated later on, this function confirms that the request body is a json list, where each entry in the list is a json object representing a constraint. Each constraint can only have the keys "ancestors" or "descendants". Ancestors and descendants values must be dictionaries or lists of dictionaries.

…son list of constraints, each constraint represented by an object. Each object with only keys 'ancestors' or 'descendants'. The value to these keys must either be an object or a list of objects. Any further validation of keys and values is performed later
@DerekFurstPitt DerekFurstPitt requested a review from yuanzhou August 2, 2024 05:09
@yuanzhou yuanzhou merged commit 9a66c76 into dev-integrate Aug 2, 2024
4 checks passed
@yuanzhou yuanzhou mentioned this pull request Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants