Skip to content

Commit

Permalink
Merge pull request #3 from istreamlabs/read-only
Browse files Browse the repository at this point in the history
fix: snake casing for read_only
  • Loading branch information
danielgtaylor authored Feb 12, 2021
2 parents fc3592a + 93dd31f commit 591d437
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
40 changes: 20 additions & 20 deletions annotation/huma.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions annotation/huma.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ extend google.protobuf.FieldOptions {
// Public marks that a field should be included in the generated Huma model.
optional bool public = 84841;

// ReadOnly marks that a field is set by the server. The client can only
// Read-only marks that a field is set by the server. The client can only
// read its value, e.g. resource creation date.
optional bool readOnly = 84842;
optional bool read_only = 84842;

// Name specifies the Huma Go field name. For example, a field might be cased
// as `Mp2T` but should be `MP2T` because it is a non-common initialism.
Expand Down

0 comments on commit 591d437

Please sign in to comment.