Commit 2aa5c93
authored
fix: a more complete implementation of schema generation (#1550)
- parse out the default value from ctor param default
- exclude getter-only properties
- properly exclude properties not set via constructor from required set
- correctly include required nullable ctor params in required set
Fixes #15491 parent d5ab4bd commit 2aa5c93
14 files changed
Lines changed: 906 additions & 432 deletions
File tree
- json_serializable
- lib/src
- type_helpers
- test
- integration
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 110 | + | |
This file was deleted.
0 commit comments