Feature request / Problem description.
Just like how OpenAPI models are currently supported, probably protobuf can be a great addition. Having this, for example, would especially help in building tools similar to FastAPI, but for gRPC based services.
Solution
Adding support for a new InputFileType
for protobuf.
Although at a technical level I am not sure how hard this is, or if there are any complications (say in terms of compatibility) which would make this simply impossible.
Alternatives
Protobuf itself provides some functionality to generate python code. But the generated code does not really give any benefits in terms of typing. Perhaps, by using pydantic we could change that for the better.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too