Skip to content

Commit

Permalink
add comment to Props method
Browse files Browse the repository at this point in the history
  • Loading branch information
redaLaanait committed Sep 9, 2024
1 parent 9cef612 commit 5945391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,5 @@ type field struct {
Doc string
AvroFieldName string
Tags map[string]TagStyle

Props map[string]any
Props map[string]any
}
2 changes: 2 additions & 0 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ func (p properties) Prop(name string) any {
return p.props[name]
}

// Props returns a map that contains all schema custom properties.
// Any accidental change to the returned map will directly modify the schema custom properties.
func (p properties) Props() map[string]any {
return p.props
}
Expand Down

0 comments on commit 5945391

Please sign in to comment.