-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
FeatureNew feature or requestNew feature or request
Description
Mandatory
Where is the source code for the plugin?
https://github.com/cjermain/protoc-gen-pydantic
Optional
Does the plugin have a valid semver version?
Yes. Latest version is v0.10.0, from GitHub Releases.
Does the plugin have a dependency on another plugin?
No. The plugin generates standalone Pydantic models and does not depend on output from any other plugin (e.g., protoc-gen-python is not required).
Does the output of this plugin depend on any other external libraries?
Yes — the generated Python (≥ 3.10) files have a runtime dependency on Pydantic v2:
pydantic>=2.0
No other runtime dependencies. The plugin binary itself is a self-contained Go binary.
Additional details:
- The plugin is a Go binary (
protoc-gen-pydantic) that reads.protodescriptors and emits*_pydantic.pyfiles — no Python runtime needed in the Docker image. - It translates
buf.validatefield constraints directly to PydanticField()kwargs andAfterValidatorannotations - Generated files require Python ≥ 3.10 for
T | Noneunion syntax.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FeatureNew feature or requestNew feature or request