Skip to content

Commit

Permalink
Merge pull request #70 from maykinmedia/feature/generate-schema-update
Browse files Browse the repository at this point in the history
Feature/generate schema update
  • Loading branch information
sergei-maertens authored Oct 4, 2023
2 parents 0b566f0 + 1d5c016 commit 7b0feeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zgw_consumers/test/component_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def generate_object(schema: dict, definition: dict, **properties):


def generate_prop(schema: dict, prop_definition: dict) -> Any:
if "allOf" in prop_definition:
prop_definition = prop_definition["allOf"][0]

if "$ref" in prop_definition:
ref_bits = prop_definition["$ref"].replace("#/", "", 1).split("/")
prop_definition = schema
Expand Down

0 comments on commit 7b0feeb

Please sign in to comment.