Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/community/cjermain-pydantic/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source:
github:
owner: cjermain
repository: protoc-gen-pydantic
2 changes: 2 additions & 0 deletions plugins/community/cjermain-pydantic/v0.10.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/community/cjermain-pydantic/v0.10.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.17
FROM --platform=$BUILDPLATFORM golang:1.26.1-bookworm AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags="-s -w" -trimpath github.com/cjermain/protoc-gen-pydantic@v0.10.0 \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-pydantic /go/bin/protoc-gen-pydantic || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-pydantic .
USER nobody
ENTRYPOINT [ "/protoc-gen-pydantic" ]
16 changes: 16 additions & 0 deletions plugins/community/cjermain-pydantic/v0.10.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: v1
name: buf.build/community/cjermain-pydantic
plugin_version: v0.10.0
source_url: https://github.com/cjermain/protoc-gen-pydantic
integration_guide_url: https://cjermain.github.io/protoc-gen-pydantic/
description: Generates Pydantic v2 model definitions from .proto files with type-safe validation, well-known type mappings, and buf.validate constraint translation.
output_languages:
- python
spdx_license_id: Apache-2.0
license_url: https://github.com/cjermain/protoc-gen-pydantic/blob/v0.10.0/LICENSE
registry:
python:
package_type: stub-only
requires_python: ">=3.10"
deps:
- "pydantic>=2.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:4KPRO9fUzdQ3ERBWUNcHNQn/FdE1IQnOjXyh/29vWpk=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:D8nh27QhugeOkZPI2vDu/kgtQRzYrnB3XvAfQ+PykaY=