chore: bump libre-graph-api-go

This commit is contained in:
Ralf Haferkamp
2024-09-23 10:49:49 +02:00
committed by Ralf Haferkamp
parent 10a67114f1
commit fa023ab43a
31 changed files with 284 additions and 79 deletions
+14
View File
@@ -11,7 +11,9 @@ API version: v1.0.4
package libregraph
import (
"bytes"
"encoding/json"
"fmt"
"reflect"
"time"
)
@@ -345,3 +347,15 @@ func IsNil(i interface{}) bool {
type MappedNullable interface {
ToMap() (map[string]interface{}, error)
}
// A wrapper for strict JSON decoding
func newStrictDecoder(data []byte) *json.Decoder {
dec := json.NewDecoder(bytes.NewBuffer(data))
dec.DisallowUnknownFields()
return dec
}
// Prevent trying to import "fmt"
func reportError(format string, a ...interface{}) error {
return fmt.Errorf(format, a...)
}