Repository navigation
Schema: Mark nullable fields - #9546
Merged
Merged
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
1337joe
force-pushed
the
schema-unrequire
branch
from
April 20, 2025 21:03
8edb6ac to
64dd46b
Compare
1337joe
force-pushed
the
schema-unrequire
branch
from
April 20, 2025 21:21
64dd46b to
82e282f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9546 +/- ##
==========================================
- Coverage 86.35% 86.32% -0.03%
==========================================
Files 1229 1229
Lines 54042 54109 +67
Branches 2280 2280
==========================================
+ Hits 46668 46711 +43
- Misses 6797 6821 +24
Partials 577 577
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1337joe
force-pushed
the
schema-unrequire
branch
from
April 21, 2025 02:42
3bc1229 to
352cf09
Compare
SchrodingersGat
approved these changes
Apr 21, 2025
Member
|
@1337joe thanks for the continued improvements :) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Added
allow_null=Trueto the rest of the required fields that my tests found to be null in the demo dataset.Note:
required=Falsehas no effect onread_onlyfields, but fields that are bothread_onlyandallow_nullget removed from the required list by the schema post-processing hook.Also changed the InfoView
default_localeserializer to be a plain string because the defaulten_usdidn't matchenfromLOCALE_CODESand was causing deserialization errors.Closes #9045