Skip to content

Confusing casing recommendation in style guide #2426

@robcresswell

Description

@robcresswell

openapi-typescript version

7.9.1

Node.js version

24.6.0

OS + version

macOS 15.6.1

Description

Hello! First off, thanks so much for this collection of libraries, I use them all the time and they're great. Also, I've filled in the required fields, though they have nothing to do with the bug report.

I was very confused by the casing recommendation (https://openapi-ts.dev/advanced#embrace-snake-case-in-js) in the docs. Is OpenAPI supposed to be snake cased? I couldn't find any casing recommendations in the spec, and I couldn't really understand what recommendation the docs were supposed to be making.

Reproduction

https://openapi-ts.dev/advanced#embrace-snake-case-in-js

Expected result

I suppose I would expect no opinions on casing, because its nothing to do with the spec, to my knowledge?

Required

  • My OpenAPI schema is valid and passes the Redocly validator (npx @redocly/cli@latest lint)

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi-tsRelevant to the openapi-typescript library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions