Skip to content

Commit 07f99a1

Browse files
committed
fix build
1 parent 71f74dc commit 07f99a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api_tests/decoder_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package test
22

33
import (
44
"bytes"
5-
"github.com/json-iterator/go"
5+
"encoding/json"
66
"github.com/stretchr/testify/require"
77
"testing"
88
)
@@ -11,7 +11,7 @@ func Test_disallowUnknownFields(t *testing.T) {
1111
should := require.New(t)
1212
type TestObject struct{}
1313
var obj TestObject
14-
decoder := jsoniter.NewDecoder(bytes.NewBufferString(`{"field1":100}`))
14+
decoder := json.NewDecoder(bytes.NewBufferString(`{"field1":100}`))
1515
decoder.DisallowUnknownFields()
1616
should.Error(decoder.Decode(&obj))
1717
}

feature_config_with_sync_map.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type frozenConfig struct {
1313
indentionStep int
1414
objectFieldMustBeSimpleString bool
1515
onlyTaggedField bool
16+
disallowUnknownFields bool
1617
decoderCache sync.Map
1718
encoderCache sync.Map
1819
extensions []Extension

0 commit comments

Comments
 (0)