Continue loop on excluded primitive
This commit is contained in:
@@ -260,7 +260,8 @@ def find_replace_ref_recursive(root, ref_name, replace_map):
|
||||
def inline_primitive_models(spec, excluded_primitives):
|
||||
to_remove_models = []
|
||||
for k, v in spec['definitions'].items():
|
||||
if k not in excluded_primitives:
|
||||
if k in excluded_primitives:
|
||||
continue
|
||||
if "properties" not in v:
|
||||
if k == "intstr.IntOrString":
|
||||
v["type"] = "object"
|
||||
|
||||
Reference in New Issue
Block a user