@flink-app/flink 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/flink.js +2 -2
- package/dist/cli/build.js +3 -3
- package/dist/cli/clean.js +2 -2
- package/dist/cli/cli-utils.js +1 -1
- package/dist/cli/forked-compiler.d.ts +2 -0
- package/dist/cli/forked-compiler.js +33 -0
- package/dist/cli/generate-schemas.js +16 -20
- package/dist/cli/run.js +2 -2
- package/dist/src/FlinkApp.d.ts +1 -1
- package/dist/src/FlinkApp.js +54 -54
- package/dist/src/FlinkErrors.d.ts +1 -1
- package/dist/src/FlinkErrors.js +5 -5
- package/dist/src/FlinkHttpHandler.d.ts +7 -7
- package/dist/src/FlinkJob.d.ts +2 -2
- package/dist/src/FlinkRepo.js +1 -1
- package/dist/src/FlinkResponse.d.ts +2 -2
- package/dist/src/FsUtils.js +4 -4
- package/dist/src/TypeScriptCompiler.js +71 -74
- package/dist/src/TypeScriptUtils.js +1 -1
- package/dist/src/index.js +1 -5
- package/dist/src/mock-data-generator.js +1 -1
- package/dist/src/utils.d.ts +0 -10
- package/dist/src/utils.js +7 -69
- package/package.json +2 -2
- package/spec/mock-project/dist/src/handlers/GetCar.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCar2.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCarWithArraySchema.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCarWithArraySchema2.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCarWithArraySchema3.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCarWithLiteralSchema.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCarWithLiteralSchema2.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCarWithSchemaInFile.js +1 -1
- package/spec/mock-project/dist/src/handlers/GetCarWithSchemaInFile2.js +1 -1
- package/spec/mock-project/dist/src/handlers/ManuallyAddedHandler.js +1 -1
- package/spec/mock-project/dist/src/handlers/ManuallyAddedHandler2.js +1 -1
- package/spec/mock-project/dist/src/handlers/PostCar.js +1 -1
- package/spec/mock-project/dist/src/handlers/PutCar.js +1 -1
- package/spec/utils.spec.ts +187 -225
- package/src/TypeScriptCompiler.ts +9 -9
- package/src/utils.ts +46 -119
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var mock_json_schema_1 = require("mock-json-schema");
|
|
4
4
|
var generateMockData = function (schema) {
|
|
5
5
|
// TODO: mock-json-schema does not seem to handle `examples` array, might want to switch to json-schema-faker
|
|
6
|
-
var mockData =
|
|
6
|
+
var mockData = mock_json_schema_1.mock(schema);
|
|
7
7
|
return mockData;
|
|
8
8
|
};
|
|
9
9
|
exports.default = generateMockData;
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Request } from "express";
|
|
2
|
-
import { JSONSchema7, JSONSchema7Definition } from "json-schema";
|
|
3
2
|
import { HttpMethod } from "./FlinkHttpHandler";
|
|
4
3
|
import { FlinkResponse } from "./FlinkResponse";
|
|
5
4
|
export declare function handlersPath(appRoot: string): string;
|
|
@@ -18,13 +17,4 @@ export declare function getRepoInstanceName(fn: string): string;
|
|
|
18
17
|
* if it starts with i.e "GetFoo"
|
|
19
18
|
*/
|
|
20
19
|
export declare function getHttpMethodFromHandlerName(handlerFilename: string): HttpMethod | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Recursively iterates thru json schema properties and replaces any $ref
|
|
23
|
-
* with the actual definiton if it exists withing provided `jsonSchemas`.
|
|
24
|
-
*
|
|
25
|
-
* @param schemaToDeRef
|
|
26
|
-
* @param jsonSchemas
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
export declare function deRefSchema(schemaToDeRef: JSONSchema7Definition, jsonSchemas: JSONSchema7): boolean | JSONSchema7;
|
|
30
20
|
export declare function getJsDocComment(comment: string): string;
|
package/dist/src/utils.js
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -39,17 +39,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.getJsDocComment = exports.
|
|
42
|
+
exports.getJsDocComment = exports.getHttpMethodFromHandlerName = exports.getRepoInstanceName = exports.getCollectionNameForRepo = exports.getSchemaFiles = exports.getHandlerFiles = exports.isError = exports.isRouteMatch = exports.schemasPath = exports.handlersPath = void 0;
|
|
43
43
|
var path_1 = require("path");
|
|
44
44
|
var tiny_glob_1 = __importDefault(require("tiny-glob"));
|
|
45
45
|
var FlinkHttpHandler_1 = require("./FlinkHttpHandler");
|
|
46
46
|
var FlinkLog_1 = require("./FlinkLog");
|
|
47
47
|
function handlersPath(appRoot) {
|
|
48
|
-
return
|
|
48
|
+
return path_1.join(appRoot, "src", "handlers");
|
|
49
49
|
}
|
|
50
50
|
exports.handlersPath = handlersPath;
|
|
51
51
|
function schemasPath(appRoot) {
|
|
52
|
-
return
|
|
52
|
+
return path_1.join(appRoot, "src", "schemas");
|
|
53
53
|
}
|
|
54
54
|
exports.schemasPath = schemasPath;
|
|
55
55
|
function isRouteMatch(req, routes) {
|
|
@@ -73,14 +73,14 @@ function getHandlerFiles(appRoot) {
|
|
|
73
73
|
switch (_a.label) {
|
|
74
74
|
case 0:
|
|
75
75
|
_a.trys.push([0, 2, , 3]);
|
|
76
|
-
return [4 /*yield*/,
|
|
76
|
+
return [4 /*yield*/, tiny_glob_1.default("**/*.ts", {
|
|
77
77
|
cwd: handlersPath(appRoot),
|
|
78
78
|
absolute: true,
|
|
79
79
|
})];
|
|
80
80
|
case 1: return [2 /*return*/, _a.sent()];
|
|
81
81
|
case 2:
|
|
82
82
|
err_1 = _a.sent();
|
|
83
|
-
FlinkLog_1.log.debug("Failed getting handler files: "
|
|
83
|
+
FlinkLog_1.log.debug("Failed getting handler files: " + err_1);
|
|
84
84
|
return [2 /*return*/, []];
|
|
85
85
|
case 3: return [2 /*return*/];
|
|
86
86
|
}
|
|
@@ -95,7 +95,7 @@ function getSchemaFiles(appRoot) {
|
|
|
95
95
|
switch (_a.label) {
|
|
96
96
|
case 0:
|
|
97
97
|
_a.trys.push([0, 2, , 3]);
|
|
98
|
-
return [4 /*yield*/,
|
|
98
|
+
return [4 /*yield*/, tiny_glob_1.default("**/*.ts", {
|
|
99
99
|
cwd: schemasPath(appRoot),
|
|
100
100
|
absolute: true,
|
|
101
101
|
})];
|
|
@@ -138,68 +138,6 @@ function getHttpMethodFromHandlerName(handlerFilename) {
|
|
|
138
138
|
return FlinkHttpHandler_1.HttpMethod.delete;
|
|
139
139
|
}
|
|
140
140
|
exports.getHttpMethodFromHandlerName = getHttpMethodFromHandlerName;
|
|
141
|
-
/**
|
|
142
|
-
* Recursively iterates thru json schema properties and replaces any $ref
|
|
143
|
-
* with the actual definiton if it exists withing provided `jsonSchemas`.
|
|
144
|
-
*
|
|
145
|
-
* @param schemaToDeRef
|
|
146
|
-
* @param jsonSchemas
|
|
147
|
-
* @returns
|
|
148
|
-
*/
|
|
149
|
-
function deRefSchema(schemaToDeRef, jsonSchemas) {
|
|
150
|
-
if (typeof schemaToDeRef === "boolean") {
|
|
151
|
-
return schemaToDeRef;
|
|
152
|
-
}
|
|
153
|
-
if (schemaToDeRef.type === "array") {
|
|
154
|
-
var items = schemaToDeRef.items;
|
|
155
|
-
if (items.$ref) {
|
|
156
|
-
var _a = items.$ref.split("/"), _0 = _a[0], _1 = _a[1], defKey = _a[2];
|
|
157
|
-
var refedSchema = (jsonSchemas.definitions || {})[defKey];
|
|
158
|
-
if (refedSchema) {
|
|
159
|
-
schemaToDeRef.items = deRefSchema(refedSchema, jsonSchemas);
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
console.warn("Failed to find deref ".concat(schemaToDeRef.$ref));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
schemaToDeRef.items = deRefSchema(schemaToDeRef.items, jsonSchemas);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
else if (schemaToDeRef.properties) {
|
|
170
|
-
for (var k in schemaToDeRef.properties) {
|
|
171
|
-
var prop = schemaToDeRef.properties[k];
|
|
172
|
-
if (typeof prop === "boolean") {
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
if (prop.$ref) {
|
|
176
|
-
var _b = prop.$ref.split("/"), _0 = _b[0], _1 = _b[1], defKey = _b[2];
|
|
177
|
-
var refedSchema = (jsonSchemas.definitions || {})[defKey];
|
|
178
|
-
if (refedSchema) {
|
|
179
|
-
schemaToDeRef.properties[k] = deRefSchema(refedSchema, jsonSchemas);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
console.warn("Failed to find deref ".concat(prop.$ref));
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
else if (prop.type === "array" && prop.items.$ref) {
|
|
186
|
-
var _c = prop.items.$ref.split("/"), _0 = _c[0], _1 = _c[1], defKey = _c[2];
|
|
187
|
-
var refedSchema = (jsonSchemas.definitions || {})[defKey];
|
|
188
|
-
if (refedSchema) {
|
|
189
|
-
schemaToDeRef.properties[k].items = deRefSchema(refedSchema, jsonSchemas);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
console.warn("Failed to find deref ".concat(prop.$ref));
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
else if (prop.type === "object" || prop.type === "array") {
|
|
196
|
-
schemaToDeRef.properties[k] = deRefSchema(prop, jsonSchemas);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return schemaToDeRef;
|
|
201
|
-
}
|
|
202
|
-
exports.deRefSchema = deRefSchema;
|
|
203
141
|
function getJsDocComment(comment) {
|
|
204
142
|
var rows = comment.split("\n").map(function (line) {
|
|
205
143
|
line = line.trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flink-app/flink",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Typescript only framework for creating REST-like APIs on top of Express and mongodb",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"rimraf": "^3.0.2",
|
|
66
66
|
"ts-node": "^9.1.1"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "fc4e2f5febd2b8594d3ade42beb4e85eb7ada4ed"
|
|
69
69
|
}
|
|
@@ -56,4 +56,4 @@ var GetCar = function (_a) {
|
|
|
56
56
|
};
|
|
57
57
|
exports.default = GetCar;
|
|
58
58
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCar.ts", exports.__query = [{ description: "For pagination", name: "page" }], exports.__params = [{ description: "", name: "id" }];
|
|
59
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"] } };
|
|
59
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "definitions": {} } };
|
|
@@ -58,4 +58,4 @@ var GetCar2 = function (_a) {
|
|
|
58
58
|
};
|
|
59
59
|
exports.default = GetCar2;
|
|
60
60
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCar2.ts", exports.__query = [], exports.__params = [];
|
|
61
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "object", "properties": { "model": { "type": "object", "properties": { "name": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["name"], "additionalProperties": false }, "engine": { "type": "object", "properties": { "name": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "required": ["model", "engine"], "additionalProperties": false } };
|
|
61
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "model": { "type": "object", "properties": { "name": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["name"], "additionalProperties": false }, "engine": { "type": "object", "properties": { "name": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "required": ["model", "engine"], "additionalProperties": false, "definitions": {} } };
|
|
@@ -52,4 +52,4 @@ var GetCarWithArraySchema = function (_a) {
|
|
|
52
52
|
};
|
|
53
53
|
exports.default = GetCarWithArraySchema;
|
|
54
54
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCarWithArraySchema.ts", exports.__query = [], exports.__params = [];
|
|
55
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "array", "items": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } } };
|
|
55
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false }, "definitions": {} } };
|
|
@@ -52,4 +52,4 @@ var GetCarWithArraySchema2 = function (_a) {
|
|
|
52
52
|
};
|
|
53
53
|
exports.default = GetCarWithArraySchema2;
|
|
54
54
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCarWithArraySchema2.ts", exports.__query = [], exports.__params = [];
|
|
55
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "array", "items": { "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false } } };
|
|
55
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": { "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false }, "definitions": {} } };
|
|
@@ -52,4 +52,4 @@ var GetCarWithArraySchema3 = function (_a) {
|
|
|
52
52
|
};
|
|
53
53
|
exports.default = GetCarWithArraySchema3;
|
|
54
54
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCarWithArraySchema3.ts", exports.__query = [], exports.__params = [];
|
|
55
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "array", "items": { "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false }, "year": { "type": "number" } }, "required": ["car", "year"], "additionalProperties": false } } };
|
|
55
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": { "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false }, "year": { "type": "number" } }, "required": ["car", "year"], "additionalProperties": false }, "definitions": {} } };
|
|
@@ -54,4 +54,4 @@ var GetCarWithLiteralSchema = function (_a) {
|
|
|
54
54
|
};
|
|
55
55
|
exports.default = GetCarWithLiteralSchema;
|
|
56
56
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCarWithLiteralSchema.ts", exports.__query = [], exports.__params = [];
|
|
57
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false } };
|
|
57
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false, "definitions": {} } };
|
|
@@ -54,4 +54,4 @@ var GetCarWithLiteralSchema2 = function (_a) {
|
|
|
54
54
|
};
|
|
55
55
|
exports.default = GetCarWithLiteralSchema2;
|
|
56
56
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCarWithLiteralSchema2.ts", exports.__query = [], exports.__params = [];
|
|
57
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "object", "properties": { "car": { "type": "object", "properties": { "nestedCar": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["nestedCar"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false } };
|
|
57
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "car": { "type": "object", "properties": { "nestedCar": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["nestedCar"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false, "definitions": {} } };
|
|
@@ -57,4 +57,4 @@ var GetCarWithSchemaInFile = function (_a) {
|
|
|
57
57
|
};
|
|
58
58
|
exports.default = GetCarWithSchemaInFile;
|
|
59
59
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCarWithSchemaInFile.ts", exports.__query = [], exports.__params = [];
|
|
60
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "object", "properties": { "model": { "type": "string" } }, "required": ["model"], "additionalProperties": false } };
|
|
60
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "model": { "type": "string" } }, "required": ["model"], "additionalProperties": false, "definitions": {} } };
|
|
@@ -57,4 +57,4 @@ var GetCarWithSchemaInFile2 = function (_a) {
|
|
|
57
57
|
};
|
|
58
58
|
exports.default = GetCarWithSchemaInFile2;
|
|
59
59
|
exports.__assumedHttpMethod = "get", exports.__file = "GetCarWithSchemaInFile2.ts", exports.__query = [], exports.__params = [];
|
|
60
|
-
exports.__schemas = { reqSchema: undefined, resSchema: { "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false } };
|
|
60
|
+
exports.__schemas = { reqSchema: undefined, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "car": { "type": "object", "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "additionalProperties": false } }, "required": ["car"], "additionalProperties": false, "definitions": {} } };
|
|
@@ -53,4 +53,4 @@ var manuallyAddedHandler = function (_a) {
|
|
|
53
53
|
};
|
|
54
54
|
exports.default = manuallyAddedHandler;
|
|
55
55
|
exports.__assumedHttpMethod = "", exports.__file = "ManuallyAddedHandler.ts", exports.__query = [], exports.__params = [];
|
|
56
|
-
exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"] }, resSchema: undefined };
|
|
56
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "definitions": {} }, resSchema: undefined };
|
|
@@ -55,4 +55,4 @@ var manuallyAddedHandler = function (_a) {
|
|
|
55
55
|
};
|
|
56
56
|
exports.default = manuallyAddedHandler;
|
|
57
57
|
exports.__assumedHttpMethod = "", exports.__file = "ManuallyAddedHandler2.ts", exports.__query = [], exports.__params = [];
|
|
58
|
-
exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"] }, resSchema: undefined };
|
|
58
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "definitions": {} }, resSchema: undefined };
|
|
@@ -54,4 +54,4 @@ var PostCar = function (_a) {
|
|
|
54
54
|
};
|
|
55
55
|
exports.default = PostCar;
|
|
56
56
|
exports.__assumedHttpMethod = "post", exports.__file = "PostCar.ts", exports.__query = [], exports.__params = [];
|
|
57
|
-
exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"] }, resSchema: { "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"] } };
|
|
57
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "definitions": {} } };
|
|
@@ -54,4 +54,4 @@ var PutCar = function (_a) {
|
|
|
54
54
|
};
|
|
55
55
|
exports.default = PutCar;
|
|
56
56
|
exports.__assumedHttpMethod = "put", exports.__file = "PutCar.ts", exports.__query = [], exports.__params = [];
|
|
57
|
-
exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"] }, resSchema: undefined };
|
|
57
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "model": { "type": "string" }, "metadata": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" } }, "additionalProperties": false } }, "required": ["model"], "definitions": {} }, resSchema: undefined };
|