We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 444155a commit b758daaCopy full SHA for b758daa
openapi_python_client/schema/openapi_schema_pydantic/header.py
@@ -29,3 +29,10 @@ class Header(Parameter):
29
]
30
},
31
)
32
+
33
34
+# Calling model_rebuild() here helps Pydantic to resolve the forward references that were used
35
+# in defining Parameter and Encoding. Without this call, any subtle change to the loading order
36
+# of schema submodules could result in an error like "Parameter is not fully defined".
37
+# See: https://docs.pydantic.dev/latest/concepts/models/#rebuilding-model-schema
38
+Parameter.model_rebuild()
0 commit comments