Continue loop on excluded primitive

This commit is contained in:
Lewis Headden
2017-11-02 10:59:11 -04:00
parent 1a4a4ff8ac
commit 0f9ff8b30a

View File

@@ -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"