mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-21 13:34:04 +02:00
backported fixes for go 1.27
This commit is contained in:
1 parent
73c9f9ec03
commit
5b94dff03d
37 files changed
+56
-52
No files matched your search
@@ -183,9 +183,8 @@ func (f SchemaField) MarshalJSON() ([]byte, error) {
|
||||
//
|
||||
// The schema field options are auto initialized on success.
|
||||
func (f *SchemaField) UnmarshalJSON(data []byte) error {
|
||||
type alias *SchemaField // alias to prevent recursion
|
||||
|
||||
a := alias(f)
|
||||
type alias SchemaField // alias to prevent recursion
|
||||
a := (*alias)(f)
|
||||
|
||||
if err := json.Unmarshal(data, a); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user