Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oneOf: incorrectly typed as map[string]jx.Raw in 1.2.0, 1.2.1 #1262

Closed
germainc opened this issue Jun 11, 2024 · 0 comments · Fixed by #1263
Closed

oneOf: incorrectly typed as map[string]jx.Raw in 1.2.0, 1.2.1 #1262

germainc opened this issue Jun 11, 2024 · 0 comments · Fixed by #1263
Labels
bug Something isn't working

Comments

@germainc
Copy link

What version of ogen are you using?

1.2.1

Can this issue be reproduced with the latest version?

Yes

What did you do?

    "EntityName": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/PersonName"
          },
          {
            "$ref": "#/components/schemas/BusinessName"
          }
        ],
        "type": "object",
        "x-schema-id": "entity_name"
    }

What did you expect to see?

// Ref: #/components/schemas/EntityName
type EntityName struct {
	OneOf EntityNameSum
}

What did you see instead?

// Ref: #/components/schemas/EntityName
type EntityName map[string]jx.Raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant