-
-
Notifications
You must be signed in to change notification settings - Fork 227
Handle empty schema as AnyProperty
instead of NoneProperty
#417
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #417 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 47 47
Lines 1549 1549
=========================================
Hits 1549 1549
Continue to review full report at Codecov.
|
return one_of_models_type_1 | ||
except: # noqa: E722 | ||
pass | ||
if not True: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this generated is a little silly, but 🤷 it reduces the complexity of the JINJA templating
AnyProperty
AnyProperty
instead of NoneProperty
@dbanty I know you're probably busy, but any updates on when you might be able to take a look at this PR (and the other 2 I've submitted)? |
@forest-benchling I'm planning on knocking out a few more PRs this weekend, and probably will try to release 0.10.0 (which will include most of the work in progress) next weekend. Can you resolve any conflicts to make that process a bit speedier? |
Codecov Report
@@ Coverage Diff @@
## main #417 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 47 47
Lines 1563 1563
=========================================
Hits 1563 1563
Continue to review full report at Codecov.
|
@dbanty Thanks. Done! |
Looks great @forest-benchling , thanks! I am going to fix the template to not need that extra if, so I'll include your changes in #445 instead of merging this one. |
…nks @forest-benchling! [#417 & #445] * Support AnyProperty * Install Poetry requirements and re * Remove NoneProperty * Add test case, change to check for Any instead of None * Fix test * fix: Remove need for unnecessary `if True` when constructing unions of Any properties. Co-authored-by: Forest Tong <[email protected]>
Closes #389.