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
Wrangler incorrectly spits out an OpenAPI schema in which the MicroTime is stored as an object. It should be stored as a string, similar to how metav1.Time is stored.
Scenario:
You have a new type, say
Foo
. Defined as such:Now, you run this type through Wrangler's provided
ToOpenAPIFromStruct
as seen inwrangler/pkg/schemas/openapi/generate.go
Line 25 in 0bfb013
Wrangler incorrectly spits out an OpenAPI schema in which the MicroTime is stored as an object. It should be stored as a string, similar to how metav1.Time is stored.
The problem is in reflection.go,
wrangler/pkg/schemas/reflection.go
Lines 495 to 498 in 0bfb013
Time is correctly compensated for, but not MicroTime.
The text was updated successfully, but these errors were encountered: