Commit Graph

5 Commits

Author SHA1 Message Date
Sebastián Ramírez d73aa1bded Add support for JSON Schema with circular references in Python 3.7 (#572)
* Add support for circular references in generated JSON Schema

* Update JSON Schema for referenced models with overrides, using allOf

* Add tests for circular references in Python 3.7

* Update History

* Remove unnecessary check, raise coverage (remove partial)

* Trigger Travis and others

* Use str concat expression instead of double expression in schema

Co-Authored-By: Samuel Colvin <samcolvin@gmail.com>

* Update pydantic/schema.py

Co-Authored-By: Samuel Colvin <samcolvin@gmail.com>

* Partial implementation of PR review

* Simplify definition of known_models
2019-06-04 18:26:36 +01:00
Sebastián Ramírez 63afb45d71 Update sub_types when calling update_forward_refs() (#464)
* Update sub_types when calling update_forward_refs(), fix #404

* Update History

* Handle deeply nested ForwardRef types in sub_types using recursion

* Move update_field_forward_refs to utils.py
2019-04-11 16:08:35 +01:00
tigerwings 085fc84818 Fix ForwardRef collection bug (#450)
* fix ForwardRef collection bug, fix #439

* reformat codes

* minor document error

* add HISTORY.rst and simplified unit test

* restore the original example for ForwardRef
2019-04-03 11:14:11 +01:00
Samuel Colvin 1161df3ca0 support ForwardRef on dataclasses (#399)
* support ForwardRef on dataclasses, fix #397

* explicit docs about when postponed annotations don't work
2019-02-18 08:41:35 +00:00
Samuel Colvin 25b5d98030 support postponed annotations and ForwardRef in python 3.7 (#348)
* support postponed annotations in python 3.7

* support for full ForwardRef

* tweak update_forward_refs

* better ForwardRef resolution

* remove debug, fix linting

* fix comments

* docs and history
2019-01-11 21:01:07 +00:00