=
36b7b3a8d6
cleanup
2023-01-17 11:28:20 -05:00
=
273eefbeb7
improve signature for get_schema_property_json
2023-01-17 11:27:20 -05:00
=
f27ac8804a
fix syntax error
2023-01-17 11:19:45 -05:00
=
c9f9e39651
ignore old schema file
2023-01-17 11:19:38 -05:00
=
81e3a35b52
cleanup
2023-01-17 11:12:30 -05:00
=
8d30408c92
pydantic.schema.schema ref updates
...
needs support
2023-01-17 11:01:17 -05:00
=
ae6481ed48
/s/jsonschema/json_schema
2023-01-17 11:00:50 -05:00
=
9a0bcfeeb3
rename schema.py jsonschema.py
2023-01-17 11:00:08 -05:00
=
31c952be7c
$ make lint
2023-01-17 10:46:12 -05:00
=
76d332ddf6
add date-time to json schema
2023-01-16 11:01:04 -05:00
=
659441c6b4
Merge remote-tracking branch 'origin/main' into kr-json-schema
2023-01-16 10:38:11 -05:00
⬢ Samuel Colvin
ef8f9fe51b
Uprev all dependencies ( #4955 )
...
* Uprev all dependencies
* use ruff instead of flake8 for docs examples linting
2023-01-15 09:57:09 -08:00
=
6cb6a29c9f
cleanup
2023-01-13 13:07:25 -05:00
=
9abaab98dc
/s/json_schema/model_json_schema
2023-01-13 12:06:44 -05:00
⬢ Samuel Colvin
8b9756d6cc
simplify analytics more ( #4930 )
2023-01-13 16:21:41 +00:00
⬢ Samuel Colvin
426799f6eb
remove remains of ads, add custom analytics ( #4927 )
2023-01-13 16:21:34 +00:00
=
5643f5fac9
cleanup
2023-01-13 10:23:20 -05:00
Matthew Gamble
bc1f09b3e4
Support kwargs model config in Mypy plugin ( #4912 )
...
Previously, the Mypy plugin only supported drawing settings from a
Config class. Now, it fully supports drawing settings from class kwargs
too.
Co-authored-by: Matthew Gamble <matthew.gamble@rea-group.com >
2023-01-13 13:54:26 +00:00
=
7ff96c8ddb
type improvements in json
2023-01-12 13:14:55 -05:00
=
249997c555
/s/integer/number
2023-01-12 12:17:31 -05:00
=
f28c6f33b4
remove skipfield from json
2023-01-12 12:16:12 -05:00
=
a941091729
tidying up of method names
2023-01-12 12:14:13 -05:00
=
1dd938b8fd
cleanup
2023-01-12 12:10:33 -05:00
=
4399b3481f
looking a lot better
2023-01-12 12:10:18 -05:00
=
a34f9eb194
cleanup
2023-01-12 11:15:28 -05:00
=
e6cbe6deef
iterating
2023-01-12 11:12:45 -05:00
=
a186505326
Merge branch 'main' into kr-json-schema
2023-01-12 10:10:58 -05:00
Raju komati
f1e27ae6cf
removed excluded fields from __fields_set__ when copying the object ( #4920 )
...
* removed excluded fields from __fields_set__ when copying the object using copy()
* reformatted code
* refactored code
* fixed mypy error
* added test cases
Co-authored-by: Raju Komati <raju.komati@fangtechnologies.com >
2023-01-11 17:00:59 +00:00
Hasan Ramezani
63566cf57c
Update email-validator optional dependency to >= 1.3.0 ( #4933 )
2023-01-11 16:58:01 +00:00
kennethreitz
83c0b57b6c
add myself as a reviewer ( #4934 )
...
Co-authored-by: = <=>
2023-01-11 16:55:34 +00:00
=
5417ab4ee4
.gitignore
2023-01-11 11:29:28 -05:00
=
7fe7489be4
inner_schema wip
2023-01-11 11:29:05 -05:00
Daniel Kjellid
eb960ca711
Fix typo in Field function docstring ( #4931 )
2023-01-11 12:46:11 +00:00
Hasan Ramezani
3c1c3505d6
Update email-validator optional dependency to > 1.2.0 ( #4926 )
2023-01-09 17:16:01 +01:00
florianfischer91
775f2d8b32
fix field inheritance ( #4911 )
...
* first try to fix inherited fields
* handle different design of __annotations__ in py39 and older
* simplify getting inherited field from base class
* add extra, very simple test
* implement suggestions
* fix merge
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2023-01-05 12:32:35 +00:00
florianfischer91
f55515820a
Rename model methods ( #4889 )
...
* renaming .json -> .model_dump_json
* renaming .dict -> .model_dump
* renaming .__fields__ -> .model_fields
* renaming .schema -> .model_json_schema
* renaming .construct -> .model_construct
* renaming .parse_obj -> .model_validate
* make linters happy
* add changes md-file
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2023-01-05 11:30:44 +00:00
Jim Kring
08f7cf63c9
config variable to raise UserWarning if model not fully defined ( #4882 )
...
* added config var warn_on_undefined_types
raises a UserWarning if model not fully defined and will need rebuild
* black formatting
* use | instead of Optional[]
* suppress undefined types warning in existing tests
* ran pre-commit to fix linting
* changed to use Optional since | failing in CI
* changes following initial code review
* added some preliminary documentation
* fix linting
* fixed linting
* fixed linting
* assert model partially built when suppressing warn
* moved check for ForwardRef into existing for loop
* change assertion to dict instead of json
* cleanup of undefined_types_warning tests and docs
* Update docs/examples/types_undefined_warning.py
* Update docs/examples/types_undefined_warning.py
* fix EOL (trim trailing whitespace) lint error
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2023-01-04 19:23:39 +00:00
dependabot[bot]
dcf3567876
build(deps): bump carloscastrojumo/github-cherry-pick-action ( #4895 )
...
Bumps [carloscastrojumo/github-cherry-pick-action](https://github.com/carloscastrojumo/github-cherry-pick-action ) from 1.0.4 to 1.0.6.
- [Release notes](https://github.com/carloscastrojumo/github-cherry-pick-action/releases )
- [Commits](https://github.com/carloscastrojumo/github-cherry-pick-action/compare/v1.0.4...v1.0.6 )
---
updated-dependencies:
- dependency-name: carloscastrojumo/github-cherry-pick-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 21:06:45 +00:00
Samuel Colvin
92ba0fe722
set dependency check to only run occationally
2022-12-30 19:45:39 +00:00
Samuel Colvin
708422e63f
fix dependencies-check.yml, take 3 🤷
2022-12-30 19:12:17 +00:00
Samuel Colvin
852cd5cde2
fix dependencies-check.yml, take 2
2022-12-30 19:08:37 +00:00
Samuel Colvin
09e451154c
fix dependencies-check.yml
2022-12-30 18:52:40 +00:00
Samuel Colvin
36bc193916
add dependencies check workflow ( #4891 )
2022-12-30 18:37:09 +00:00
Samuel Colvin
7208ebc096
increase minimum typing-extensions version, see #4885
2022-12-30 09:56:09 +00:00
Samuel Colvin
75d90ab9c5
uprev mypy ( #4735 )
...
* uprev mypy
* --disable-recursive-aliases and other fixes
* fix other mypy requirement pin
2022-12-28 19:22:18 +00:00
Samuel Colvin
1e370ac537
uprev certif to molify Dependabot
2022-12-28 19:20:13 +00:00
Marcelo Trylesinski
2e17c85810
Delete setup.py ( #4881 )
2022-12-27 20:33:17 +00:00
gr8jam
7c6e7e3bac
Fixed datetime format specifier in docs ( #4876 )
2022-12-27 09:17:16 +01:00
Jim Kring
a96794ddc1
move xfail from module to individual failing tests ( #4843 )
...
* move xfail from module to individual failing tests
* missed a test. fixed formatting.
* removed xfail mark from a passing test
2022-12-21 12:10:48 +00:00
Hasan Ramezani
b221981f5d
Replace deprecated get_event_loop with asyncio.run ( #4859 )
2022-12-20 16:31:45 +00:00