Skip to content

Commit

Permalink
Do not use empty enum in Union
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Sep 6, 2023
1 parent 3519759 commit b643fa4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mashumaro/jsonschema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ class JSONSchema(DataClassJSONMixin):
enum: Optional[List[Any]] = None
const: Optional[Any] = field(default_factory=lambda: MISSING)
format: Optional[
Union[
JSONSchemaInstanceFormat,
JSONSchemaStringFormat,
JSONSchemaInstanceFormatExtension,
]
Union[JSONSchemaStringFormat, JSONSchemaInstanceFormatExtension]
] = None
title: Optional[str] = None
description: Optional[str] = None
Expand Down

0 comments on commit b643fa4

Please sign in to comment.