fix for obsolete pydantic parameters
This commit is contained in:
@ -14,23 +14,19 @@ Each of the `Fields` has assigned both `sqlalchemy` column class and python type
|
||||
|
||||
### String
|
||||
|
||||
`String(max_length,
|
||||
allow_blank: bool = True,
|
||||
strip_whitespace: bool = False,
|
||||
`String(max_length: int,
|
||||
min_length: int = None,
|
||||
max_length: int = None,
|
||||
curtail_length: int = None,
|
||||
regex: str = None,)` has a required `max_length` parameter.
|
||||
|
||||
* Sqlalchemy column: `sqlalchemy.String`
|
||||
* Type (used for pydantic): `str`
|
||||
|
||||
!!!tip
|
||||
For explanation of other parameters check [pydantic][pydantic] documentation.
|
||||
For explanation of other parameters check [pydantic](https://pydantic-docs.helpmanual.io/usage/schema/#field-customisation) documentation.
|
||||
|
||||
### Text
|
||||
|
||||
`Text(allow_blank: bool = True, strip_whitespace: bool = False)` has no required parameters.
|
||||
`Text()` has no required parameters.
|
||||
|
||||
* Sqlalchemy column: `sqlalchemy.Text`
|
||||
* Type (used for pydantic): `str`
|
||||
@ -247,5 +243,5 @@ response = client.post(
|
||||
|
||||
[relations]: ../relations/index.md
|
||||
[queries]: ../queries.md
|
||||
[pydantic]: https://pydantic-docs.helpmanual.io/usage/types/#constrained-types
|
||||
[pydantic]: https://pydantic-docs.helpmanual.io/usage/schema/#field-customisation
|
||||
[server default]: https://docs.sqlalchemy.org/en/13/core/defaults.html#server-invoked-ddl-explicit-default-expressions
|
||||
@ -1,3 +1,18 @@
|
||||
# 0.10.16
|
||||
|
||||
## ✨ Features
|
||||
|
||||
* Allow passing your own pydantic `Config` to `ormar.Model` that will be merged with the default one by @naturalethic (thanks!) [#285](https://github.com/collerek/ormar/issues/285)
|
||||
* Add `SmallInteger` field type by @ProgrammerPlus1998 (thanks!) [#297](https://github.com/collerek/ormar/pull/297)
|
||||
|
||||
|
||||
## 🐛 Fixes
|
||||
|
||||
* Fix generating openapi schema by removing obsolete pydantic field parameters that were directly exposed in schema [#291](https://github.com/collerek/ormar/issues/291)
|
||||
* Fix unnecessary warning for auto generated through models [#295](https://github.com/collerek/ormar/issues/295)
|
||||
|
||||
|
||||
|
||||
# 0.10.15
|
||||
|
||||
## 🐛 Fixes
|
||||
|
||||
Reference in New Issue
Block a user