Type: String
.
Valid values: path or link to the specification.
module.exports = {petstore: {input: {target: './petstore.yaml',},},};
Type: Boolean
.
Default Value: false
.
To enforce the best quality as possible of specification, we have integrated the amazing OpenAPI linter from IBM. We strongly encourage you to setup your custom rules with a .validaterc
file, you can find all useful information about this configuration here.
module.exports = {petstore: {input: {validation: true,},},};
Type: Object
.
Give you the possibility to override the specification
Type: String
or Function
.
Valid values: path or implementation of the transformer function.
This function is executed when you generate and take in argument an OpenAPIObject and should return an OpenAPIObject.
module.exports = {input: {override: {transformer: 'src/api/transformer/add-version.js',},},};
Example of transformer here
Type: Object
.
Default Value: {}
.
Orval convert Swagger 2.0 definitions into OpenApi 3.0.x. You can use the converterOptions property to provide custom config for that. Check here available options.
module.exports = {petstore: {input: {converterOptions: true,},},};
Type: Object
.
Default Value: { resolve: { github: githubResolver }, validate: true }
.
Orval use a parser to handle multiple files specification. You can use the parserOptions property to provide custom config for that parser. Check here available options. Be default Orval add a github parser but you can add own if you have a private specification or other requirement.
Your specification is automatically validated by default.
module.exports = {petstore: {input: {parserOptions: {resolve: { gitlab: gitlabResolver },},},},};