This page is a reference to the different ways of configuring your Orval projects.
Using an orval.config.js
configuration file, placed at the root of a project, you can provide a list of options that changes the default behaviour of the Orval generated files.
Configuration options for the following are described on this page:
Category | Description |
---|---|
Input | Directly the path to the specification or the configuration of the imported specification and also what you want to override on it. |
Output | Directly the path to where you want to generate your models and HTTP calls or the configuration of what and where you want to write the generated code. |
module.exports = {petstore: {input: './petstore.yaml',output: './petstore.ts',},};