-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: koooge <koooooge@gmail.com>
- Loading branch information
Showing
9 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
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 @@ | ||
/package-lock.json |
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,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "node", | ||
"target": "es2020", | ||
"module": "commonjs", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"strict": true, | ||
"skipLibCheck": true | ||
} | ||
} |
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,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "node16", | ||
"target": "es2020", | ||
"module": "commonjs", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"strict": true, | ||
"skipLibCheck": true | ||
} | ||
} |
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,8 @@ | ||
const assert = require('node:assert'); | ||
const { oas31 } = require('openapi3-ts'); | ||
const { OpenApiBuilder } = require('openapi3-ts/oas31'); | ||
|
||
const builder1 = new oas31.OpenApiBuilder(); | ||
assert.ok(typeof builder1.rootDoc === 'object'); | ||
const builder2 = new OpenApiBuilder(); | ||
assert.ok(typeof builder2.rootDoc === 'object'); |
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,8 @@ | ||
import assert from 'node:assert'; | ||
import { oas31 } from 'openapi3-ts'; | ||
import { OpenApiBuilder } from 'openapi3-ts/oas31'; | ||
|
||
const builder1 = new oas31.OpenApiBuilder(); | ||
assert.ok(typeof builder1.rootDoc === 'object'); | ||
const builder2 = new OpenApiBuilder(); | ||
assert.ok(typeof builder2.rootDoc === 'object'); |
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,8 @@ | ||
import assert from 'node:assert'; | ||
import { oas31 } from 'openapi3-ts'; | ||
import { OpenApiBuilder } from 'openapi3-ts/oas31'; | ||
|
||
const builder1 = new oas31.OpenApiBuilder(); | ||
assert.ok(typeof builder1.rootDoc === 'object'); | ||
const builder2 = new OpenApiBuilder(); | ||
assert.ok(typeof builder2.rootDoc === 'object'); |
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,17 @@ | ||
{ | ||
"name": "openapi3-ts-test", | ||
"version": "1.0.0", | ||
"main": "index.cjs", | ||
"scripts": { | ||
"test:cjs": "node index.cjs", | ||
"test:mjs": "node index.mjs", | ||
"test:ts": "ts-node --project fixture/tsconfig.node.json index.ts", | ||
"test:ts-esm": "ts-node --esm --project fixture/tsconfig.node.json index.ts", | ||
"test:ts-node16": "ts-node --project fixture/tsconfig.node16.json index.ts", | ||
"test:ts-esm-node16": "ts-node --esm --project fixture/tsconfig.node16.json index.ts" | ||
}, | ||
"dependencies": { | ||
"openapi3-ts": "file:..", | ||
"ts-node": "^10.9.1" | ||
} | ||
} |
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
a676811
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.
👍🏽