Skip to content

[Python] typing for bytes in typespec #5941

@msyyc

Description

@msyyc

According to https://typespec.io/docs/getting-started/typespec-for-openapi-dev/, openapi {"type": string; "format": binary} equals to typespec bytes

Image
However, python emitter emit the former to BinaryType whose typing is IO while the latter to ByteArraySchema whose typing is bytes.

Context

the issue is reported by @catalinaperalta who is helping migrate loadtesting to typespec.

Metadata

Metadata

Assignees

Labels

emitter:client:pythonIssue for the Python client emitter: @typespec/http-client-python

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions