Closed Gerleff closed 1 year ago
Works well for consumers, and does not for producers.
I'll reopen the issue, see what went wrong and we'll do a patch for this in the next couple of days.
Thanks for the quick feedback :)
Can you please explain further what is failing for the producers, with code examples if possible.
For a simple app example:
...
app = FastKafka(kafka_brokers=kafka_brokers)
@app.produces(description="Producer description in documentation")
async def to_hello_world(msg: str) -> HelloWorld:
"""This description should not show"""
return HelloWorld(msg=msg)
The description "Producer description in documentation" is shown in the async docs for the producer.
Checked out more precisely, everything works as expected! Seems like browser caches web app, served by "fastkafka docs serve" command
In team we have the rule to document code basis in Russian, but all the docs we provide must be in English. Autogeneration of docs is using doc attribute of function to generate description.
Current way to achieve the goal:
Preferable solution:
Thanks for response =)