Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Fix bug when setting top class for jsonschema generator (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakunni3 authored Nov 17, 2022
1 parent ccbd246 commit a0c73aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkml_validator/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_jsonschema(schema: str, py_target_class: object = None, generator: Gener
kwargs["not_closed"] = False
top_class = py_target_class.class_name if py_target_class else None
generator = get_generator(generator, **kwargs)
generator.topCls = top_class
generator.top_class = top_class
jsonschemastr = generator.serialize()
jsonschema_obj = json.loads(jsonschemastr)
return jsonschema_obj
Expand Down

0 comments on commit a0c73aa

Please sign in to comment.