зеркало из https://github.com/Azure/ARO-RP.git
Merge pull request #3543 from Azure/mociarain/remove-ErrorIfNoField
Drop ErrorIfNoField
This commit is contained in:
Коммит
ec4f2b5bcc
|
@ -15,13 +15,7 @@ import (
|
|||
var secretPreservingJSONHandle *codec.JsonHandle
|
||||
|
||||
func init() {
|
||||
secretPreservingJSONHandle = &codec.JsonHandle{
|
||||
BasicHandle: codec.BasicHandle{
|
||||
DecodeOptions: codec.DecodeOptions{
|
||||
ErrorIfNoField: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
secretPreservingJSONHandle = &codec.JsonHandle{}
|
||||
|
||||
err := secretPreservingJSONHandle.SetInterfaceExt(reflect.TypeOf(SecureBytes{}), 1, secureHidingExt{})
|
||||
if err != nil {
|
||||
|
|
|
@ -78,13 +78,7 @@ func getDatabaseKey(keys sdkcosmos.DatabaseAccountsClientListKeysResponse, log *
|
|||
}
|
||||
|
||||
func NewJSONHandle(aead encryption.AEAD) (*codec.JsonHandle, error) {
|
||||
h := &codec.JsonHandle{
|
||||
BasicHandle: codec.BasicHandle{
|
||||
DecodeOptions: codec.DecodeOptions{
|
||||
ErrorIfNoField: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
h := &codec.JsonHandle{}
|
||||
|
||||
if aead == nil {
|
||||
return h, nil
|
||||
|
|
|
@ -51,11 +51,6 @@ func (f *frontend) _putSubscription(ctx context.Context, r *http.Request) ([]byt
|
|||
oldState := doc.Subscription.State
|
||||
|
||||
h := &codec.JsonHandle{
|
||||
BasicHandle: codec.BasicHandle{
|
||||
DecodeOptions: codec.DecodeOptions{
|
||||
ErrorIfNoField: true,
|
||||
},
|
||||
},
|
||||
Indent: 4,
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче