Generate, validate, cache and mock in your frontend applications, based on your OpenAPI specification.
Get your API ready out of the box in a few seconds. Prevent human error, and let your parameters, clients and types be auto-generated by Orval.
Get your contract! With the combination of Orval and OpenAPI, you have a strong standard for your team, which avoids misunderstandings and lets you focus on your UI.
You don't have to wait for your backend to be ready, before testing your application. Generate mocks with Orval that are fully compliant with your API.
Instead of wasting time writing models, HTTP requests and mocks, you can focus on implementing the actual requirements.
module.exports = {petstore: {output: {mode: 'split',target: './src/petstore.ts',schemas: './src/model',client: 'react-query',mock: true,},input: {target: './petstore.yaml',},},};
my-appβββ srcβββ petstore.definition.tsβββ petstore.schemas.tsβββ petstore.msw.tsβββ petstore.tsβββ modelβββ index.tsβββ pet.tsβββ pets.tsβββ createPetsBody.tsβββ error.ts