Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Remove option to use $ as body alias
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski committed Feb 25, 2022
1 parent 5485788 commit 8429bc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion entry/body_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (f BodyField) MarshalYAML() (interface{}, error) {
func fromJSONDot(value string) BodyField {
keys := strings.Split(value, ".")

if keys[0] == "$" || keys[0] == BodyPrefix {
if keys[0] == BodyPrefix {
keys = keys[1:]
}

Expand Down
2 changes: 1 addition & 1 deletion entry/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func NewField(s string) (Field, error) {
return Field{}, fmt.Errorf("resource fields cannot be nested")
}
return Field{ResourceField{split[1]}}, nil
case BodyPrefix, "$":
case BodyPrefix:
return Field{BodyField{split[1:]}}, nil
default:
return Field{BodyField{split}}, nil
Expand Down

0 comments on commit 8429bc4

Please sign in to comment.