Skip to content

Commit

Permalink
Remove type field from schema if ref exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ketozhang committed Nov 17, 2024
1 parent c84652f commit 85719e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asdf_pydantic/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def generate(self, schema, mode="validation"):

class WithAsdfSchema(WithJsonSchema):
def __init__(self, asdf_schema: dict, **kwargs):
json_schema = {"type": "object", **asdf_schema}
super().__init__(json_schema, **kwargs)
super().__init__(asdf_schema, **kwargs)



def AsdfTag(tag: str) -> WithAsdfSchema:
Expand Down

0 comments on commit 85719e2

Please sign in to comment.