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
In particular, the above does indeed happen for the more-or-less-symmetrical case with s/MinFields/MaxFields/ in the CUE schema and s/minProperties/maxProperties/ in the OpenAPI output.
What did you see instead?
#foo: openapi: #foo: invalid value {} (does not satisfy struct.MinFields(1)): len(fields) < MinFields(1) (0 < 1):
./test.cue:5:5
The text was updated successfully, but these errors were encountered:
thorehusfeldt
changed the title
struct.MinFields and OpenApi schema export
struct.MinFields and OpenAPI schema export
Dec 2, 2024
myitcv
changed the title
struct.MinFields and OpenAPI schema export
encoding/openapi: struct.MinFields not satisfied when generating from CUE
Dec 6, 2024
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
It does.
What did you do?
I create
and run
What did you expect to see?
In particular, the above does indeed happen for the more-or-less-symmetrical case with
s/MinFields/MaxFields/
in the CUE schema ands/minProperties/maxProperties/
in the OpenAPI output.What did you see instead?
The text was updated successfully, but these errors were encountered: