Skip to content

Commit

Permalink
feat: zod (#10)
Browse files Browse the repository at this point in the history
* docs(readme): add quick start to install CLI

* feat: handle zod schema for Body and Query. Need to do `ReturnedSchema`

* feat: handle ReturnedSchema

* chore: version to 2.2.0

* ci: publish action run on main push

* fix: import from jsr not local
  • Loading branch information
Sorikairox authored Nov 7, 2024
1 parent 4f6dce7 commit 5925f5e
Show file tree
Hide file tree
Showing 6 changed files with 383 additions and 145 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish
on:
push:
branch:
branches:
- main
workflow_dispatch:

Expand All @@ -23,4 +23,4 @@ jobs:
deno-version: canary

- name: Publish package
run: deno publish --allow-slow-types
run: deno publish
9 changes: 6 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@danet/swagger",
"version": "2.1.5",
"version": "2.2.0",
"exports": {
".":"./mod.ts",
"./decorators": "./decorators.ts"
Expand Down Expand Up @@ -35,7 +35,7 @@
},
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true
"experimentalDecorators": true
},
"tasks": {
"test": "deno test --unstable spec --allow-env --allow-read --allow-net",
Expand All @@ -46,6 +46,9 @@
"path_to_regexp": "npm:[email protected]",
"@std/path": "jsr:@std/[email protected]",
"@std/assert": "jsr:@std/[email protected]",
"@danet/core": "jsr:@danet/core@2"
"@danet/core": "jsr:@danet/core@2",
"@danet/zod": "jsr:@danet/[email protected]",
"zod": "npm:[email protected]",
"zod-openapi": "npm:@anatine/zod-openapi"
}
}
262 changes: 152 additions & 110 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5925f5e

Please sign in to comment.