Skip to content

Commit 84dbfeb

Browse files
committed
Import schema-typescript history into history/schema-typescript/
2 parents 2538187 + 5e662c7 commit 84dbfeb

File tree

131 files changed

+727476
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+727476
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
jest: true
7+
},
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/recommended'
11+
],
12+
overrides: [],
13+
parser: '@typescript-eslint/parser',
14+
parserOptions: {
15+
ecmaVersion: 'latest',
16+
sourceType: 'module'
17+
},
18+
plugins: [
19+
'@typescript-eslint',
20+
'simple-import-sort',
21+
'unused-imports'
22+
],
23+
rules: {
24+
indent: [
25+
'error',
26+
2
27+
],
28+
quotes: [
29+
'error',
30+
'single',
31+
{
32+
avoidEscape: true,
33+
allowTemplateLiterals: true
34+
}
35+
],
36+
'quote-props': [
37+
'error',
38+
'as-needed'
39+
],
40+
semi: [
41+
'error',
42+
'always'
43+
],
44+
'simple-import-sort/imports': 1,
45+
'simple-import-sort/exports': 1,
46+
'unused-imports/no-unused-imports': 1,
47+
'@typescript-eslint/no-unused-vars': [
48+
1,
49+
{
50+
argsIgnorePattern: 'React|res|next|^_'
51+
}
52+
],
53+
'@typescript-eslint/no-explicit-any': 0,
54+
'@typescript-eslint/no-var-requires': 0,
55+
'no-console': 0,
56+
'@typescript-eslint/ban-ts-comment': 0,
57+
'prefer-const': 0,
58+
'no-case-declarations': 0,
59+
'no-implicit-globals': 0,
60+
'@typescript-eslint/no-unsafe-declaration-merging': 0
61+
},
62+
ignorePatterns: [
63+
'node_modules/',
64+
'dist/',
65+
'**/node_modules/',
66+
'**/dist/'
67+
]
68+
};
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
6+
pull_request:
7+
types: [opened, reopened]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
run-tests:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: checkout 🛎️
16+
uses: actions/checkout@v4
17+
18+
- name: node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20.9.0
22+
23+
- name: Deps
24+
run: |
25+
yarn
26+
yarn build
27+
28+
- name: Test Schema TypeScript
29+
run: |
30+
cd ./packages/schema-typescript && yarn test
31+
32+
- name: Test OpenAPI Spec
33+
run: |
34+
cd ./packages/schema-sdk && yarn test
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/node_modules/
2+
**/.DS_Store
3+
**/dist
4+
**/yarn-error.log
5+
lerna-debug.log
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": true,
5+
"useTabs": false,
6+
"singleQuote": true
7+
}
8+

history/schema-typescript/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2024 Dan Lynch <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# schema-typescript
2+
3+
<p align="center" width="100%">
4+
<img src="https://github.com/hyperweb-io/interweb-utils/assets/545047/89c743c4-be88-409f-9a77-4b02cd7fe9a4" width="80">
5+
<br/>
6+
JSON Schema TypeScript utilities for the Interweb
7+
<br />
8+
<a href="https://github.com/hyperweb-io/schema-typescript/actions/workflows/run-tests.yaml">
9+
<img height="20" src="https://github.com/hyperweb-io/schema-typescript/actions/workflows/run-tests.yaml/badge.svg" />
10+
</a>
11+
<a href="https://github.com/hyperweb-io/schema-typescript/blob/main/LICENSE-MIT">
12+
<img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/>
13+
</a>
14+
</p>
15+
16+
## Packages
17+
18+
This repository contains the following packages:
19+
20+
- [`schema-typescript`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/schema-typescript)
21+
Provides robust tools for handling JSON schemas and converting them to TypeScript interfaces with ease and efficiency.
22+
23+
- [`@schema-typescript/cli`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/cli)
24+
CLI is the command line utility for `schema-typescript`.
25+
26+
- [`schema-sdk`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/schema-sdk)
27+
Provides robust tools for handling OpenAPI schemas and converting them to TypeScript clients with ease and efficiency.
28+
29+
- [`@interweb/node-api-client`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/node-api-client)
30+
A lightweight and flexible HTTP client for interacting with RESTful APIs in Node.js, supporting common HTTP methods and customizable options.
31+
32+
- [`@interweb/fetch-api-client`](https://github.com/hyperweb-io/schema-typescript/tree/main/packages/fetch-api-client)
33+
A lightweight and flexible HTTP client for interacting with RESTful APIs in Node.js *and the Browser*, supporting common HTTP methods and customizable options.
34+
35+
36+
## Need Help?
37+
38+
`schema-typescript` might not work perfectly for all JSON schemas yet. We value your feedback and contributions to make it better. If you encounter any issues or have suggestions for improvements, please [let us know](https://github.com/pyramation/schema-typescript/issues).
39+
40+
## License 📜
41+
42+
Distributed under the MIT License. See \`LICENSE\` for more information.

0 commit comments

Comments
 (0)