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

Make some fields in Entrega mandatory and add some tests #96

Merged
merged 8 commits into from
Jan 23, 2024

Conversation

augusto-herrmann
Copy link
Member

According to requisites file defined by stakeholder, some fields were defined as mandatory.

In models.py they were indeed nullable=False, but in schemas.py they were defined as optional. We made it consistent by making it mandatory there too.

Some new tests were added for making sure that optional fields can be included with a json value of null.

Fixes #95

@augusto-herrmann augusto-herrmann merged commit 2ab3062 into main Jan 23, 2024
1 check passed
@augusto-herrmann augusto-herrmann deleted the issue-95 branch January 23, 2024 19:25
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.

No PUT plano_entregas, uma entrega com campo data_entrega e valor null dá erro 500
1 participant