Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
ca3b204
project setup & openapi schema generator
jlalmes May 11, 2022
3f489a1
refactor
May 13, 2022
c12395f
more
May 13, 2022
6cec26e
wip adapter
jlalmes May 14, 2022
25c392d
createOpenApiExpressHandler
May 16, 2022
135a339
adapter
May 16, 2022
86523ed
refactor handlers
May 17, 2022
338ca13
better readme
May 17, 2022
071b5d6
better readme
May 17, 2022
369f040
better readme
May 17, 2022
9408e8b
better readme
May 17, 2022
ca48c22
better read me
May 17, 2022
bdf664e
ci(release) :bookmark: trpc-openapi v0.2.0-alpha.0
May 17, 2022
6d3a693
version
May 17, 2022
5985fac
maxBodySize
May 17, 2022
e1bbcb3
added .github workflow tests
May 17, 2022
8165ab9
better read me
May 17, 2022
2382532
mod node version
May 17, 2022
86dc21e
update build & publish config
May 17, 2022
13ff2dd
ci(release) :bookmark: trpc-openapi v0.1.0-alpha.2
May 17, 2022
afbc8ed
esnext build
May 17, 2022
78d7d11
trpc-openapi v0.1.0-alpha.3
May 17, 2022
153f985
remove esnext lib
May 17, 2022
e9804d1
trpc-openapi v0.1.0-alpha.4
May 17, 2022
f59464b
more tsconfig changes
May 17, 2022
b664a7f
trpc-openapi v0.1.0-alpha.6
May 17, 2022
a032914
trpc-openapi v0.1.0-alpha.7
May 17, 2022
93f017b
progress
May 17, 2022
55552c1
better zod instanceof
May 17, 2022
a4a532d
trpc-openapi v0.1.0-alpha.8
May 17, 2022
240ff06
trpc-openapi v0.1.0-alpha.9
May 17, 2022
eb1b202
better instanceof handling
May 17, 2022
aace61c
trpc-openapi v0.1.0-alpha.10
May 17, 2022
416c624
trpc-openapi v0.1.0-alpha.11
May 17, 2022
4c05f70
trpc-openapi v0.1.0-alpha.12
May 17, 2022
b0b0950
full examples
May 18, 2022
d78cc18
better types & readme
May 18, 2022
a258094
better readme
May 18, 2022
830bb48
better readme
May 18, 2022
0d74187
better readme
May 18, 2022
71df168
better readme
May 18, 2022
7c9a54f
add trpc to examples
May 18, 2022
86e4082
better docs
May 18, 2022
c61838e
trpc-openapi v0.1.0-alpha.13
May 18, 2022
66b3e0f
tests & better readme
May 18, 2022
6aef391
follow
May 18, 2022
235b437
better readme
May 18, 2022
aa82b1f
fix tests
May 23, 2022
989ac78
trpc-openapi v0.1.0-alpha.14
May 23, 2022
1c66364
typo
May 23, 2022
7f53a11
use TRPCErrors
May 24, 2022
b8b410c
workspaces
May 24, 2022
5cbb93a
trpc-openapi v0.1.0-alpha.15
May 24, 2022
b087542
better readme file links
May 24, 2022
91ec477
Merge branch 'master' into v0.1.0
jlalmes May 24, 2022
73f58d6
typo
May 24, 2022
a8dd128
Merge branch 'v0.1.0' of https://github.com/jlalmes/trpc-openapi into…
May 24, 2022
dabe67b
completed test suite
May 25, 2022
d6c34c9
trpc-openapi v0.1.0-alpha.16
May 25, 2022
fb8cfe7
feat: infer prop description from zod description
dodas May 28, 2022
0383a38
Merge pull request #3 from dodas/feat/description
jlalmes May 29, 2022
539e72c
added test for schema descriptions
jlalmes May 29, 2022
189e630
trpc-openapi v0.1.0-alpha.17
jlalmes May 29, 2022
45fc806
better readme
jlalmes May 29, 2022
bd777d3
better readme
jlalmes May 29, 2022
52656a5
readme logo
jlalmes May 29, 2022
8482120
better readme trpc-openapi logo
jlalmes May 29, 2022
741c979
better readme trpc-openapi logo
jlalmes May 29, 2022
7c0473a
update vscode workspace colors
jlalmes May 30, 2022
3ee3440
better vscode workspace settings
jlalmes May 30, 2022
591baae
linting
jlalmes May 31, 2022
ab5e685
tidy query input param description
jlalmes May 31, 2022
1c98986
better workspace color
jlalmes May 31, 2022
75c1ad2
todo & readme
jlalmes May 31, 2022
f6c1f75
add path parameters to readme
May 31, 2022
3353281
readme update
May 31, 2022
ae403ab
better readme
May 31, 2022
c1d9714
prog
May 31, 2022
7b1a856
always resolve first qs param for key
jlalmes Jun 1, 2022
de14b87
fix build
jlalmes Jun 1, 2022
005c3fc
add release script
jlalmes Jun 1, 2022
6951a95
trpc-openapi v0.1.0-alpha.18
jlalmes Jun 1, 2022
648365b
added description field
jlalmes Jun 1, 2022
bdf47c8
generator
jlalmes Jun 1, 2022
1a74ea4
Merge branch 'v0.1.0' into feat/path-parameters
jlalmes Jun 1, 2022
1a162ff
upgrade deps
jlalmes Jun 1, 2022
2422b4c
better regexes
jlalmes Jun 1, 2022
15b5ee7
fix tests
jlalmes Jun 1, 2022
bf80c79
better example readmes
jlalmes Jun 1, 2022
d7fbbd9
better example readmes
jlalmes Jun 6, 2022
95b3a84
path parameters readme
jlalmes Jun 6, 2022
8ac698a
better docs
jlalmes Jun 6, 2022
f518d90
better readme
jlalmes Jun 6, 2022
b607191
tests
jlalmes Jun 6, 2022
f939a49
better examples
jlalmes Jun 6, 2022
f1ecb97
better readme
jlalmes Jun 6, 2022
22475d8
better readme
jlalmes Jun 6, 2022
b582ac9
better readme
jlalmes Jun 6, 2022
bd6da5b
better readme llinks
jlalmes Jun 6, 2022
a931620
Merge pull request #4 from jlalmes/feat/path-parameters
jlalmes Jun 6, 2022
4ab8e84
trpc-openapi v0.1.0-alpha.19
jlalmes Jun 6, 2022
1bd4ee3
trpc-openapi v0.1.0-alpha.20
jlalmes Jun 6, 2022
8263565
better readme
jlalmes Jun 6, 2022
d84338d
link to tests readme
jlalmes Jun 6, 2022
74cf477
better readme
jlalmes Jun 6, 2022
7f99b47
better readme
jlalmes Jun 6, 2022
883a7d2
better readme
Jun 7, 2022
57ffd36
grammar
Jun 7, 2022
dc64fc0
Support for `ZodEnum`, `ZodNativeEnum` & `ZodLiteral` (#7)
jlalmes Jun 7, 2022
9eed7ed
trpc-openapi v0.1.0-alpha.21
Jun 7, 2022
4911bb2
Support `z.void()` input (#9)
jlalmes Jun 8, 2022
ba59755
bugfix/dedupe-mutation-path-input (#10)
jlalmes Jun 8, 2022
1852561
minor renaming
Jun 8, 2022
1738e4c
added bad output test
Jun 8, 2022
7051c5c
feat/order-tags (#11)
jlalmes Jun 8, 2022
04ec1c9
ZodUnion and better ZodEnum support
Jun 8, 2022
ecbf6af
trpc-openapi v0.1.0-alpha.22
Jun 8, 2022
1fafea5
fix express-example router
Jun 8, 2022
e6d39b6
bugfix/clone monkey patched router
jlalmes Jun 9, 2022
b50fa6e
trpc-openapi v0.1.0-alpha.23
jlalmes Jun 9, 2022
a16be44
refactor monkeypatch trpc client test
jlalmes Jun 9, 2022
d46ce78
refactor instanceofzodtypelike
Jun 10, 2022
757fe86
patch & minor release scripts
Jun 10, 2022
71671c5
trpc-openapi v0.1.0
Jun 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:promise/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: { jsx: false },
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
},
env: {
node: true,
},
rules: {
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
},
overrides: [
{
files: ['*.js', '*.jsx'],
rules: {},
},
],
};
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: jlalmes
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.DS_Store
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!dist/**/*
!package.json
!package-lock.json
!LICENSE
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sign-git-tag=false
message="trpc-openapi v%s"
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"yzhang.markdown-all-in-one",
]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#8FCE0B",
"titleBar.inactiveBackground": "#4B5A30"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 James Berry <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading