File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
openapi_python_client/parser/properties Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -162,15 +162,14 @@ def property_from_data( # noqa: PLR0911, PLR0912
162
162
config = config ,
163
163
roots = roots ,
164
164
)
165
- if not isinstance (prop , PropertyError ):
166
- # We won't be generating a separate Python class for this schema - references to it will just use
167
- # the class for the schema it's referencing - so we don't add it to classes_by_name; but we do
168
- # add it to models_to_process, if it's a model, because its properties still need to be resolved.
169
- if isinstance (prop , ModelProperty ):
170
- schemas = evolve (
171
- schemas ,
172
- models_to_process = [* schemas .models_to_process , prop ],
173
- )
165
+ # We won't be generating a separate Python class for this schema - references to it will just use
166
+ # the class for the schema it's referencing - so we don't add it to classes_by_name; but we do
167
+ # add it to models_to_process, if it's a model, because its properties still need to be resolved.
168
+ if isinstance (prop , ModelProperty ):
169
+ schemas = evolve (
170
+ schemas ,
171
+ models_to_process = [* schemas .models_to_process , prop ],
172
+ )
174
173
return prop , schemas
175
174
176
175
if data .type == oai .DataType .BOOLEAN :
You can’t perform that action at this time.
0 commit comments