You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As for CLI - it sends values in the form of ObjectID("value") to server.
(NOTE: CLI doesn't support ObjectId yet but I tried to implement it and hit this problem)
Changing the String() function as suggested by @youyuanwu the issue above will solve both cases.
The text was updated successfully, but these errors were encountered:
dimovnike
added a commit
to dimovnike/strfmt
that referenced
this issue
Aug 14, 2021
Function ObjectId.String() at
strfmt/bson.go
Line 98 in ac88b91
bsonprim.ObjectID(id).Hex()
instead of string. The current version breaks swagger validation and CLI generation.For swagger validation problems please see this issue: go-swagger/go-swagger#2616 (comment)
As for CLI - it sends values in the form of ObjectID("value") to server.
(NOTE: CLI doesn't support ObjectId yet but I tried to implement it and hit this problem)
Changing the String() function as suggested by @youyuanwu the issue above will solve both cases.
The text was updated successfully, but these errors were encountered: