Reset schema when unmarshalling "true"
This commit is contained in:
parent
7b432ffe7f
commit
1e958fddb5
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ type Schema struct {
|
||||||
|
|
||||||
func (schema *Schema) UnmarshalJSON(b []byte) error {
|
func (schema *Schema) UnmarshalJSON(b []byte) error {
|
||||||
if bytes.Equal(b, []byte("true")) {
|
if bytes.Equal(b, []byte("true")) {
|
||||||
// Nothing to do
|
*schema = Schema{}
|
||||||
} else if bytes.Equal(b, []byte("false")) {
|
} else if bytes.Equal(b, []byte("false")) {
|
||||||
*schema = Schema{Not: []Schema{
|
*schema = Schema{Not: []Schema{
|
||||||
Schema{},
|
Schema{},
|
||||||
|
|
Loading…
Reference in a new issue