Quick Start

Example without config:

$ orval --input ./petstore.yaml --output ./src/petstore.ts

The --input can take a yaml or a json.

The --output is the file where you want to generate your models and HTTP calls.

Example with config:

$ orval --config ./orval.config.js
# or
$ orval

File orval.config.js

module.exports = {
'petstore-file': {
input: './petstore.yaml',
output: './src/petstore.ts',
},
};
Was this page helpful?

© 2020 Victor Bury. All rights reserved.