You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.
Not sure this is a limitation of Twirp or .proto(3), but how do you convey to consumers that an attribute is optional?
For example what if I wanted to make the inches attribute optional on twitch.twirp.example.Haberdasher/MakeHat? I know I could manually modify the generated swagger.json file, however that diminishes the value of auto-generation.
The text was updated successfully, but these errors were encountered:
Required/optional doesn't exist in proto3. We could do it with some extended proto annotations though.
I started some work generating json-schema from the same proto files, and using them in the generated swagger file (see use-refs-to-jsonschema branch) but it isn't in a working state yet.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Not sure this is a limitation of Twirp or .proto(3), but how do you convey to consumers that an attribute is optional?
For example what if I wanted to make the
inches
attribute optional ontwitch.twirp.example.Haberdasher/MakeHat
? I know I could manually modify the generated swagger.json file, however that diminishes the value of auto-generation.The text was updated successfully, but these errors were encountered: