anymaniax / orval

orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
https://orval.dev
MIT License
2.57k stars 287 forks source link

Model filename casing #1499

Open agamm opened 6 days ago

agamm commented 6 days ago

What are the steps to reproduce this issue?

  1. Generate a schema with models

What happens?

Model file names' first lettter is lowercase for some reason image

What were you expecting to happen?

Be in TitleCase.

Any logs, error output, etc?

Any other comments?

What versions are you using?

Operating System: Ubuntu Package Version: 6.30.2

melloware commented 6 days ago

Do you have a reproducer? Is it like that because that is how it is in your openAPI Spec?

agamm commented 5 days ago

Just a standard FastAPI openapi.json?

melloware commented 5 days ago

yeah i was seeing if something is "helloWorld" in the JSON does it come out as that variable name in the generated code?

agamm commented 5 days ago

The openai.json looks fine capital-wise: image

orval model: image

The contents are fine by the way: image

melloware commented 5 days ago

got it.