Skip to content

Commit

Permalink
correct typos
Browse files Browse the repository at this point in the history
  • Loading branch information
BSnelling committed May 15, 2024
1 parent f8cda20 commit 0f29025
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hdr_schemata/utils/create_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,10 @@ def form_structure(data, form, parent=None):
_ = item.pop("type")

if isinstance(infos, list):
# Skip fields where the type is a pydantic type we have defined e.g. "Organisation"
# because we drill down into the subtypes instead
if len(infos) == 0:
continue
# # Skip fields where the type is a pydantic type we have defined e.g. "Organisation"
# # because we drill down into the subtypes instead
# elif isinstance(infos[0], str) and infos[0].lower() == k.split(".")[-1]:
# continue
else:
item["types"] = infos[0]
else:
Expand Down Expand Up @@ -228,7 +226,7 @@ def remove_types(data):
from hdr_schemata.models.GWDM.v1_2 import Gwdm12


reate_markdown(Hdruk220, "./docs/HDRUK/", "2.2.0")
create_markdown(Hdruk220, "./docs/HDRUK/", "2.2.0")
create_markdown(Hdruk221, "./docs/HDRUK/", "2.2.1")
create_markdown(Hdruk212, "./docs/HDRUK/", "2.1.2")
create_markdown(Hdruk213, "./docs/HDRUK/", "2.1.3")
Expand Down

0 comments on commit 0f29025

Please sign in to comment.