Skip to content

Conversation

@mieltn
Copy link
Contributor

@mieltn mieltn commented Sep 5, 2025

based on the discussion in #1088 (comment)

when i try to pass type: string format: binary file of a registered type in a multipart part, it fails on validation

on binary i expect it to use FileBodyDecoder

  • added validation on content-type from encoding.contentType string
  • using FileBodyDecoder as default when schema is type: string format: binary AND strict content-type is not specified in the encoding object

@mieltn mieltn force-pushed the multipart-ct-decoder branch 2 times, most recently from 793edf6 to d6c218e Compare September 9, 2025 09:52
… added validation on content-type from encoding
@mieltn mieltn force-pushed the multipart-ct-decoder branch from d6c218e to 372f815 Compare September 9, 2025 09:53
@fenollp fenollp changed the title feat(multipart-ct-decoder): default body decoder on binary schema openapi3filter: feat(multipart-ct-decoder): default body decoder on binary schema Sep 11, 2025
@fenollp fenollp merged commit cbe02c5 into getkin:master Sep 11, 2025
5 checks passed
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