v0.0.426 fix JsonOpt
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m57s

This commit is contained in:
2024-04-01 16:03:00 +02:00
parent 36b71dfaf3
commit 678ddd7124
2 changed files with 3 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ func (m *JsonOpt[T]) UnmarshalJSON(data []byte) error {
return errors.New("JsonOpt: UnmarshalJSON on nil pointer")
}
m.isSet = true
return json.Unmarshal(data, &m.value)
}