-
Notifications
You must be signed in to change notification settings - Fork 161
generator failing on uniqueItems #1507
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of ogen are you using?
➜ /Users/doneill/.asdf/installs/golang/1.24.5/bin/ogen --version
ogen version v1.14.0 (built with go1.24.5) darwin/arm64
Can this issue be reproduced with the latest version?
Yes
What did you do?
- wget https://raw.githubusercontent.com/Mist-Automation-Programmability/mist_openapi/refs/heads/main/mist.openapi.yaml
- ogen --target workspace/mist --clean mist.openapi.yaml
What did you expect to see?
generated files
What did you see instead?
➜ /Users/doneill/.asdf/installs/golang/1.24.5/bin/ogen --target workspace/mist --clean mist.openapi.yaml
- mist.openapi.yaml:97755:20 -> uniqueItems: unexpected field for type "object"
97752 | - x
97753 | - y
97754 | type: object
→ 97755 | uniqueItems: true
97756 | zone_vertex_m:
97757 | properties:
97758 | x:
97759 | description: X in pixel
generation failed:
main.run
/Users/doneill/.asdf/installs/golang/1.24.5/packages/pkg/mod/github.com/ogen-go/[email protected]/cmd/ogen/main.go:376
Tested this yaml file with a python oas generator and it worked fine.
Thanks in advance/for your help
Damian.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working