Skip to content

Subscriber with Pydantic BaseModel argument treated as a single field's type rather than the whole body's type #1230

Answered by Lancetnik
jonathansick asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, FastStream is able to publish raw pydantic models (as well as regular python types) and sets content-type header automatically too

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jonathansick
Comment options

@Lancetnik
Comment options

Answer selected by jonathansick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants