prototool
protoc-gen-validate
prototool | protoc-gen-validate | |
---|---|---|
4 | 6 | |
4,988 | 3,646 | |
- | 0.8% | |
0.0 | 8.0 | |
about 2 years ago | 7 days ago | |
Go | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prototool
-
Protobuf Schema Validation
what weitzj said.. which is a validator and rule-checker.. and you may actually be looking for a linter like the one built into prototools: https://github.com/uber/prototool. this includes the uber and google linting rules.
-
Using graphQL+gRPC+Golang to Create a Bike Rental Microservices, with persistence on ArangoDB.
curl -sSL \ https://github.com/uber/prototool/releases/download/v1.8.0/prototool-$(uname -s)-$(uname -m) \ -o /usr/local/bin/prototool && \ chmod +x /usr/local/bin/prototool
-
Introduction to Protocol Buffers
Protocol Buffers Writing Conventions.
-
Simple Microservices with UI - Java, Kotlin & Go versions available!
Check https://github.com/uber/prototool, this is an implementation of this idea.
protoc-gen-validate
- Protobuf Schema Validation
-
Protobuf-ES: The Protocol Buffers TypeScript/JavaScript runtime we all deserve
My understanding is that the powers that be within Google have decided that validating messages is outside the scope of schemas and serialization. protoc-gen-validate provides a portable way to perform validation: https://github.com/bufbuild/protoc-gen-validate
The problem with required fields is it kicks the can down the road when you want to deprecate a field. Keeping everything optional is much, much better for everyone in the long run.
-
Why isn't gRPC used more for browser to api transport over REST / graphql?
I built a (go) very rough draft to support 3.1 + a json pointer pkg to support a refactor that was in progress before I bailed on the idea. The amount of effort to get a conventional API was dwarfing that of grpc, especially with protoc-gen-validate.
- Protoc-Gen-Validate (PGV)
-
is there any package to generate validation code for struct instead of using reflect (tags)?
Yes, I am currently using this. I prefer something like this https://github.com/envoyproxy/protoc-gen-validate
-
sneak peak: code generation extensions to prost (protobuf code generator)
We've been using Rust with protobuf, but had to write lots of conversions from protobuf struct to actual DTO, since prost generates Options for nested types, and does not really support custom types. So I extended prost with the options that we needed. I might aim to also support protoc-gen-validate.
What are some alternatives?
buf - The best way of working with Protocol Buffers.
Protobuf - Protocol Buffers - Google's data interchange format
prost - PROST! a Protocol Buffers implementation for the Rust Language
gogoprotobuf - [Deprecated] Protocol Buffers for Go with Gadgets
ozzo-validation - An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
ArangoDB - 🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
grpc-web - gRPC Web implementation for Golang and TypeScript
pkisauce - Ephemeral One Time/Build-Time gRPC TLS PKI system.
protolock - Protocol Buffer companion tool. Track your .proto files and prevent changes to messages and services which impact API compatibility.
propanedb - A document database for Protocol Buffer messages with GRPC interface
phero - Full-stack type-safety with pure TypeScript