JSON Patch expects only array in SQL, not object
This commit is contained in:
parent
b724d864f8
commit
6c82529d85
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ func (p *parser) parseDiff() (exp []Expr, err error) {
|
|||
|
||||
one := &DiffExpression{}
|
||||
|
||||
tok, lit, err := p.shouldBe(JSON, ARRAY, PARAM)
|
||||
tok, lit, err := p.shouldBe(ARRAY, PARAM)
|
||||
if err != nil {
|
||||
return nil, &ParseError{Found: lit, Expected: []string{"json"}}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue