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

Integer type not supported as a schema type. #1144

Open
i4ki opened this issue Dec 20, 2023 · 1 comment
Open

Integer type not supported as a schema type. #1144

i4ki opened this issue Dec 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@i4ki
Copy link

i4ki commented Dec 20, 2023

What version of ogen are you using?

v0.79.0

Can this issue be reproduced with the latest version?

Yes

What did you do?

Add the schema below:

components:
  schemas:
    safeInteger:
      description: "MAX_SAFE_INTEGER"
      type: integer
      format: int64
      maximum: 9007199254740991
      minimum: 0

What did you expect to see?

Correctly parsed and then being able to reference it with '#/components/schemas/safeInteger'.

What did you see instead?

  - openapi.yml:1166:7 -> unknown parameter location ""
	  1164 |
	  1165 |     safeInteger:
	→ 1166 |       type: integer
	  1167 |       description: "MAX_SAFE_INTEGER"
	  1168 |       format: int64
	  1169 |       maximum: 9007199254740991
	  1170 |       minimum: 0
@i4ki i4ki added the bug Something isn't working label Dec 20, 2023
@tdakkota
Copy link
Member

The problem is with parameter declaration.

For some reason, ogen fails to get right field position.

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
Development

No branches or pull requests

2 participants