Skip to content

generator failing on uniqueItems #1507

@damianoneill

Description

@damianoneill

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?

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions