mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-08 23:50:47 +02:00
backported fixes for go 1.27
This commit is contained in:
@@ -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