-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(clients): add zod * feat(zod): add validations variables * feat(zod): handling some format and escap regex * fix(zod): package json version
- Loading branch information
Showing
18 changed files
with
504 additions
and
502 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,5 +93,6 @@ export const getResponse = ({ | |
types: groupedByStatus, | ||
contentTypes, | ||
schemas, | ||
originalSchema: responses, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[![npm version](https://badge.fury.io/js/orval.svg)](https://badge.fury.io/js/orval) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
[![tests](https://github.com/anymaniax/orval/actions/workflows/tests.yaml/badge.svg)](https://github.com/anymaniax/orval/actions/workflows/tests.yaml) | ||
|
||
<p align="center"> | ||
<img src="./logo/orval-logo-horizontal.svg?raw=true" width="500" height="160" alt="orval - Restfull Client Generator" /> | ||
</p> | ||
<h1 align="center"> | ||
Visit <a href="https://orval.dev" target="_blank">orval.dev</a> for docs, guides, API and beer! | ||
</h1> | ||
|
||
### Code Generation | ||
|
||
`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. | ||
|
||
`Generate`, `valid`, `cache` and `mock` in your React, Vue, Svelte and Angular applications all with your OpenAPI specification. | ||
|
||
### Samples | ||
|
||
You can find below some samples | ||
|
||
- [react app](https://github.com/anymaniax/orval/tree/master/samples/react-app) | ||
- [react query](https://github.com/anymaniax/orval/tree/master/samples/react-query) | ||
- [svelte query](https://github.com/anymaniax/orval/tree/master/samples/svelte-query) | ||
- [vue query](https://github.com/anymaniax/orval/tree/master/samples/vue-query) | ||
- [react app with swr](https://github.com/anymaniax/orval/tree/master/samples/react-app-with-swr) | ||
- [nx fastify react](https://github.com/anymaniax/orval/tree/master/samples/nx-fastify-react) | ||
- [angular app](https://github.com/anymaniax/orval/tree/master/samples/angular-app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "@orval/zod", | ||
"version": "6.12.1", | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsup ./src/index.ts --target node12 --minify --clean --dts --splitting", | ||
"dev": "tsup ./src/index.ts --target node12 --clean --watch src", | ||
"lint": "eslint src/**/*.ts" | ||
}, | ||
"dependencies": { | ||
"@orval/core": "6.12.1" | ||
} | ||
} |
Oops, something went wrong.
cebdb2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
orval – ./
orval-git-master-anymaniax.vercel.app
orval.vercel.app
orval.dev
www.orval.dev
orval-anymaniax.vercel.app