forked from kevadesu/forgejo
[Vendor] update go-swagger v0.21.0 -> v0.25.0 (#12670)
* Update go-swagger * vendor
This commit is contained in:
parent
66843f2237
commit
3270e7a443
350 changed files with 26353 additions and 5552 deletions
2
vendor/go.mongodb.org/mongo-driver/bson/primitive/objectid.go
generated
vendored
2
vendor/go.mongodb.org/mongo-driver/bson/primitive/objectid.go
generated
vendored
|
@ -126,7 +126,7 @@ func (id *ObjectID) UnmarshalJSON(b []byte) error {
|
|||
}
|
||||
|
||||
if len(str) != 24 {
|
||||
return fmt.Errorf("cannot unmarshal into an ObjectID, the length must be 12 but it is %d", len(str))
|
||||
return fmt.Errorf("cannot unmarshal into an ObjectID, the length must be 24 but it is %d", len(str))
|
||||
}
|
||||
|
||||
_, err = hex.Decode(id[:], []byte(str))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue