forked from loafle/openapi-generator-original
[python] add circular reference import (#16940)
* [python] add circular reference import Signed-off-by: ふぁ <yuki@yuki0311.com> * [python] update samples Signed-off-by: ふぁ <yuki@yuki0311.com> --------- Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
@@ -560,7 +560,6 @@ class ModelTests(unittest.TestCase):
|
||||
# should not throw the following errors:
|
||||
# pydantic.errors.ConfigError: field "additional_properties" not yet prepared so type is still a ForwardRef, you might need to call ObjectToTestAdditionalProperties.update_forward_refs().
|
||||
|
||||
@unittest.skip("TODO: pydantic v2: fix circular dependencies between CircularReferenceModel, FirstRef, SecondRef")
|
||||
def test_first_ref(self):
|
||||
# shouldn't throw "still a ForwardRef" error
|
||||
a = petstore_api.FirstRef.from_dict({})
|
||||
|
||||
Reference in New Issue
Block a user