Skip to content

feat: support bytes::Bytes#1490

Open
hdbg wants to merge 2 commits intojuhaku:masterfrom
hdbg:push-ssllsnvlkkxq
Open

feat: support bytes::Bytes#1490
hdbg wants to merge 2 commits intojuhaku:masterfrom
hdbg:push-ssllsnvlkkxq

Conversation

@hdbg
Copy link
Copy Markdown

@hdbg hdbg commented Oct 20, 2025

basic feature support for bytes::Bytes

@hdbg hdbg force-pushed the push-ssllsnvlkkxq branch from 0a52c9f to 3514a71 Compare October 21, 2025 08:54
Comment on lines +803 to +810
const _: () = {
impl PartialSchema for bytes::Bytes {
fn schema() -> openapi::RefOr<openapi::schema::Schema> {
<Vec<u8> as PartialSchema>::schema()
}
}
impl ToSchema for bytes::Bytes {}
};
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wrapping it to const _: () { } and not just block directly as { }?

@juhaku
Copy link
Copy Markdown
Owner

juhaku commented Feb 23, 2026

Also a test case would be great. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants