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

bug: Set additionalProperties to True for preprocessing schemas. #2620

Merged
merged 4 commits into from
Oct 21, 2022

Conversation

ksbrar
Copy link
Collaborator

@ksbrar ksbrar commented Oct 10, 2022

@connor-mccorm I think that we shouldn't set additionalProperties to False like this within the JSON schemas. At runtime, any properties that do not exist on the dataclasses will be excluded after load because of a flag we've set on the BaseMarshmallowConfig class. But with this flag set directly on the schema you can get into weird situations with, amongst other things, upgrading and validating old configs.

@ksbrar ksbrar requested a review from connor-mccorm October 10, 2022 21:41
@github-actions
Copy link

github-actions bot commented Oct 10, 2022

Unit Test Results

         6 files  ±0           6 suites  ±0   3h 34m 24s ⏱️ + 19m 28s
  3 466 tests  - 1    3 344 ✔️  - 1    77 💤 ±0  45 ±0 
10 395 runs   - 6  10 096 ✔️  - 6  254 💤 ±0  45 ±0 

For more details on these failures, see this check.

Results for commit b180f04. ± Comparison against base commit c9a5c0a.

♻️ This comment has been updated with latest results.

@ksbrar ksbrar merged commit 82dd7ce into master Oct 21, 2022
@ksbrar ksbrar deleted the ksbrar-patch-1 branch October 21, 2022 02:32
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