Comments (5)
As for why optional string abc = 1 [(buf.validate.field).required = true];
is meaningful => it allows you to differentiate between the field abc not
being set at all and being set to "", basically allowing explicit field presence.
This is similar to how in OpenAPI
terms you could have a JSON
field of type string that's required, and you could set it to an empty string and that's still valid, but if you remove the field from the JSON, it will then complain it's missing.
from buf.
This is definitely a bug - we'll fix.
from buf.
Thanks for reporting this bug! This is fixed in #2590 and will go out in the next release. Sorry for the inconvenience
from buf.
This has been fixed in v1.28.1, sorry for the troubles.
from buf.
Thanks for the kind comments and quick fix. Really appreciate it 👍
from buf.
Related Issues (20)
- `buf generate` does not use correct `buf.lock` when using `--config` with `git` source HOT 2
- Generate implicit dependencies HOT 4
- unknown extension grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema HOT 2
- WARN bufimagebuild File imports not found in your local dependencies HOT 4
- Fails to install on BSDs HOT 1
- Field plugin not found in type bufgen.ExternalPluginConfigV1 HOT 1
- Stubs are stored under the initial path where proto files can be found HOT 2
- Clarification on RPC and Request/Response Names HOT 2
- Error installing buf via go install HOT 1
- buf generate does not appear to respect buf.yaml excludes rules HOT 7
- `ignore`/`build.excludes` with glob/regex/pattern HOT 1
- language_version not specified in .pre-commit-hooks.yaml HOT 3
- buf generate get an error HOT 1
- Error with buf build on bazel external dependency HOT 4
- lint: Excluding a rule doesn't seem to work HOT 4
- Unable to use buf without bsr HOT 2
- Issues with protovalidate when linting a proto file with repeated fields and protovalidate constraints HOT 2
- Resource locking serializes concurrent buf executions? HOT 5
- field name contains a number HOT 2
- FIELD_SAME_ONEOF is not triggering HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buf.