Skip to content

Commit

Permalink
byte and binary formats return bytes type
Browse files Browse the repository at this point in the history
  • Loading branch information
p1c2u committed Feb 14, 2024
1 parent 3221983 commit 3f5e81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openapi_core/unmarshalling/schemas/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def format_uuid(value: Any) -> UUID:
return UUID(value)


def format_byte(value: str, encoding: str = "utf8") -> str:
return str(b64decode(value), encoding)
def format_byte(value: str, encoding: str = "utf8") -> bytes:
return b64decode(value)


def format_number(value: str) -> Union[int, float]:
Expand Down

0 comments on commit 3f5e81e

Please sign in to comment.