Skip to content

Commit a810bb2

Browse files
committed
Remove type field from schema if ref exists
1 parent 8172389 commit a810bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asdf_pydantic/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def generate(self, schema, mode="validation"):
9595

9696
class WithAsdfSchema(WithJsonSchema):
9797
def __init__(self, asdf_schema: dict, **kwargs):
98-
json_schema = {"type": "object", **asdf_schema}
99-
super().__init__(json_schema, **kwargs)
98+
super().__init__(asdf_schema, **kwargs)
99+
100100

101101

102102
def AsdfTag(tag: str) -> WithAsdfSchema:

0 commit comments

Comments
 (0)