Commit b95b853
Allow extra fields in YAML schema modules, add stricter validation (#1050)
* Bump `datamodel-code-generator` from 0.28.2 to 0.35.0
* Allow extra fields in YAML schema modules
* Add test module
* Forbid `StepBase.script` from being None in bitbucket pipelines (i.e. revert to previous behaviour) and add missing doc comment
* Avoid using `default_factory` in schema modules to preserve round-tripping
* Use explicit default kwarg for `pydantic.Field` declarations
* Replace defaults with None in schemas for roundtripping
Restore addition of "shared" to the Literal annotation in `StepBase.type` to match default
* Use `by_alias=True` when using `.model_dump*` pydantic methods
* Fix typo in comment
* Restore `max-time` alias
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Run ruff formatter
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 6fce804 commit b95b853
8 files changed
Lines changed: 209 additions & 41 deletions
File tree
- src/usethis/_integrations
- ci/bitbucket
- pre_commit
- tests/usethis/_integrations/pre_commit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments