Samuel Colvin
32efbf069b
dataclass import alias for export ( #783 )
...
* dataclass import alias for export, fix #781
* support --no-implicit-reexport in pydantic, add changes
2019-08-28 11:54:59 +01:00
Scott P
5015a7e48b
Improve auto-generated title in JSON schemas ( #772 )
...
* Improve auto-generated title in JSON schemas
Underscore is converted to space.
* Added changes .rst file.
2019-08-21 16:49:05 +01:00
Samuel Colvin
9dee83a689
better error message for TypeError on datetime parsing ( #766 )
...
* better error message for TypeError on datetime parsing
* add change, fix tests
* reduce scope of errors caught
2019-08-21 13:45:11 +01:00
Daniel Petti
aa5e8c60b7
Feature/frozenset support ( #762 )
...
* Better error for unsuported "typing" objects.
Fixes #745
Add a better error message for fields with types from the typing
module that are not directly supported by Pydantic. Previously,
it caused a cryptic assertion failure.
* Add support for frozenset fields.
Also provide an example of their usage.
Fixes #745
* Address review comments.
Fixes #745
* use equals not "is" for int comparison.
2019-08-21 13:13:46 +01:00
Samuel Colvin
5f634067da
moving typing related objects into typing.py ( #761 )
...
* moving typing related objects into typing.py, fix #713
* cleanup
2019-08-21 12:49:19 +01:00
dmontagu
756454fb58
Change defaults for BaseSettings ( #747 )
...
* Change defaults for BaseSettings
* Update docs and fix build
* Minor documentation fixes
* Fix lowercase issues
* Update docs and fix build
* Fix formatting
* Try with monkeypatched test
* Fix doublequotes
* Change case_insensitive to case_sensitive
* more change details.
2019-08-21 12:48:28 +01:00
dmontagu
5e8db161b8
Preserve annotations from bases ( #758 )
...
* Preserve annotations from bases
* Incorporate feedback
* Update tests based on feedback
2019-08-21 12:45:50 +01:00
Samuel Colvin
0e8cfba713
small performance improvements to validators and fields ( #763 )
...
* small performance improvements to validators and fields
* simplify ErrorWrapper and ValidationError
* more cleanup of errors, combine test_error_wrapper.py and test_error.py
* tweak datetime_parse.py
* fix for python 3.6
* add change
* fix bug with int or float passed to datetime.time
2019-08-18 16:48:39 +01:00
dmontagu
65d838aa88
Serialize only __root__ value ( #752 )
...
* Serialize only __root__ value, fix #730
* Add changes and fix docs
* Clean up root model docs
* Update docs/index.rst
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Update docs/index.rst
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Rename variable
* fix rst in change description
2019-08-17 18:58:32 +01:00
dmontagu
27bb336545
Fix broken examples ( #753 )
...
* Fix broken examples
* Update changes
2019-08-17 13:03:53 +01:00
dmontagu
6c0f4f31d1
Test mypy integration with pytest ( #735 )
...
* Test mypy integration with pytest
* Fix for without deps
* Fix filenames issue
* Remove python run in external-mypy
* Update changes
* Remove external-mypy
2019-08-17 12:59:11 +01:00
Koudai Aono
08c6af8ae2
add documentation for PyCharm Plugin ( #750 )
...
* add documentation for PyCharm Plugin
* add a change document for a history
* Delete typing.py
* update documents
* Apply suggestions from code review
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
2019-08-16 11:37:13 +01:00
Raphael de Carvalho Almeida
5b5451c02e
Added initvars support to post_init_post_parse ( #748 )
...
* Added initvars support to post_init_post_parse
* Update change log with PR number
* Add practical initvars example to tests
* Update documentation
2019-08-16 09:36:56 +01:00
Abdussamet Koçak
f41d5dca3c
Support assert statements inside validators ( #653 )
...
* Support assert statements inside validators
* Add a validator example that uses assert
* Add warning about consequences of using -O optimization flag
* Fix a typo
* Fix incomplete validator
* Extend exception name generation
* Improve tests
* Clarify pytest behaviour
* handle assertion error name, fix build
* Address feedback
* docs cleanup
* Incorporate feedback
* fix quotes
2019-08-15 12:06:21 +01:00
dmontagu
321cde0c88
Include all annotated fields in order ( #715 )
...
* Include all annotated fields in order
* Update docs and changes
* fix field ordering
* update change info
* fix coverage
2019-08-12 12:05:22 +01:00
Samuel Colvin
82ef45c890
alter the behaviour of dict(model) so that sub-models are nolonger converted to dictionaries ( #733 )
...
* fix iteration to not convert to dict by default
* add change
* remove extra newline
2019-08-12 11:31:35 +01:00
Samuel Colvin
5837acb288
test demonstrating internal ValidationError ( #738 )
...
* test demonstrating internval ValidationError
* fix #736
2019-08-11 14:14:02 +01:00
dmontagu
72edca7532
Make bool_validator strict ( #617 )
...
* Make bool_validator strict
* incorporate feedback
* Add RelaxedBool
* Fix position in schema.py
* update BoolError message
* Incorporate feedback
* Update history
* Add changes
* Update docs/index.rst
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Update docs/index.rst
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Update tests/test_types.py
Co-Authored-By: Samuel Colvin <samcolvin@gmail.com >
* Incorporate feedback
* Update booleans.py
* Remove RelaxedBool
* tweak docs and update changes to new format
2019-08-10 12:00:29 +01:00
Samuel Colvin
72bada8ca8
add change, and tweak change format
2019-08-06 16:37:38 +01:00
Samuel Colvin
9c8bba71c6
Preparation for Version 1
2019-08-06 16:19:38 +01:00