google / google/gnostic

Support for generating Proto fields with 'optional' keyword

Open
#303 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

I was looking for a way to be able to define the OpenAPI YAML in such a way that gnostic will generate protobuf with some fields using the "optional" keyword (which I think is kind of the reverse of what #275 was focused on). We want to use this optional keyword because we want to be able to check for existence vs. a field being set to its default value.

Is this currently possible, or is there a workaround to achieve this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.