Skip to content

Commit

Permalink
Prepare test environment for @nonara
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Dec 5, 2023
1 parent 0ced37f commit e509338
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install --force
- run: npm install
- run: npx tsc
- run: node bin
11 changes: 0 additions & 11 deletions bin/IMember.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IMember = void 0;
var IMember;
(function (IMember) {
function generate() {
return {
id: 0,
name: "something",
};
}
IMember.generate = generate;
})(IMember || (exports.IMember = IMember = {}));
35 changes: 33 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,38 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
const typia_1 = __importDefault(require("typia"));
const IMember_1 = require("./IMember");
console.log((input => {
return "object" === typeof input && null !== input && ("number" === typeof input.id && "string" === typeof input.name);
})(IMember_1.IMember.generate()));
}).toString(), JSON.stringify({
schemas: [
{
$ref: "#/components/schemas/IMember"
}
],
components: {
schemas: {
IMember: {
type: "object",
properties: {
id: {
"x-typia-required": true,
"x-typia-optional": false,
type: "number"
},
name: {
"x-typia-required": true,
"x-typia-optional": false,
type: "string"
}
},
nullable: false,
required: [
"id",
"name"
],
"x-typia-jsDocTags": []
}
}
},
purpose: "swagger"
}, null, 2));
Loading

0 comments on commit e509338

Please sign in to comment.