Repository navigation
Added schema generation for Generic fields - #2262
Conversation
Fixed test_assert_raises_validation_error.
Fixed test_assert_raises_validation_error.
Codecov Report
@@ Coverage Diff @@
## master #2262 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 4199 4205 +6
Branches 854 856 +2
=========================================
+ Hits 4199 4205 +6
Continue to review full report at Codecov.
|
|
Hi @maximberg and thanks for the contribution. |
|
Hi @PrettyWood, |
|
Coverage restored. |
As a matter of fact it's not my PR but @danni's. I just think both works should be merged into one. If this PR is good to go and test cases from @danni's PR are green with your PR fine! But I won't checkout locally both works and do it myself sorry |
Co-authored-by: Maz Jaleel <mazjaleel@gmail.com>
|
@Mazyod Thanks! I used your proposal. |
|
@PrettyWood Actually @danni's PR is not exactly about problem, described in #1578. |
|
@samuelcolvin I wanted to sponsor this project because recent generics enhancements will make a big difference for our project 🙇♂️ Appreciate your help |
|
👍 here too I have tried out both #2262 (this) and #2260 MRs and they both work well with my codebase 😄 Currently @danni's MR is indicating lower code coverage. However, two of those tests flag failures on @maximberg's MR ( By way of expediency, perhaps this MR could be merged as-is, providing an improvement? A later MR would then add the nested generic functionality. In the meantime I will attempt to understand both MRs...
|
|
@davidhyman My code solves the problem of generic fields in generating schema. |
|
I found some strange behavior when generic field is Optional. Will check it on Monday, 15th. |
|
this looks great, thank you. If you find other strange behaviour, please create an issue or if you're confident, a PR. |
Change Summary
Generating schema for generic fields hasn't been implemented. Now it should work.
Related issue number
Fixes #1578.
Checklist
changes/<pull request or issue id>-<github username>.mdfile added describing change(see changes/README.md for details)