Skip to content

Commit 591d437

Browse files
Merge pull request #3 from istreamlabs/read-only
fix: snake casing for read_only
2 parents fc3592a + 93dd31f commit 591d437

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

annotation/huma.pb.go

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotation/huma.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ extend google.protobuf.FieldOptions {
99
// Public marks that a field should be included in the generated Huma model.
1010
optional bool public = 84841;
1111

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

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

0 commit comments

Comments
 (0)