Skip to content

Commit

Permalink
update swagger for draft location switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Duvivier committed Nov 30, 2024
1 parent 90f61dd commit 79342cb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
24 changes: 15 additions & 9 deletions public/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@
"format": "date-time"
},
"id": {
"type": "string"
"type": "number",
"format": "double"
},
"email": {
"type": "string"
Expand Down Expand Up @@ -447,7 +448,8 @@
"type": "string"
},
"user_id": {
"type": "string"
"type": "number",
"format": "double"
},
"git": {
"type": "string"
Expand Down Expand Up @@ -656,7 +658,8 @@
"type": "boolean"
},
"user_id": {
"type": "string"
"type": "number",
"format": "double"
}
},
"required": ["user_id"],
Expand All @@ -676,7 +679,8 @@
"type": "boolean"
},
"user_id": {
"type": "string"
"type": "number",
"format": "double"
}
},
"required": ["user_id"],
Expand All @@ -696,7 +700,8 @@
"type": "boolean"
},
"user_id": {
"type": "string"
"type": "number",
"format": "double"
}
},
"type": "object",
Expand Down Expand Up @@ -1210,7 +1215,8 @@
"name": "userId",
"required": true,
"schema": {
"type": "string"
"format": "double",
"type": "number"
}
}
],
Expand All @@ -1226,7 +1232,7 @@
}
}
},
"/api/v3/apps/{slug}/files/draft/{filePath}": {
"/api/v3/apps/{slug}/draft/files/{filePath}": {
"post": {
"operationId": "WriteFile",
"responses": {
Expand Down Expand Up @@ -1310,7 +1316,7 @@
]
}
},
"/api/v3/apps/{slug}/metadata/draft": {
"/api/v3/apps/{slug}/draft/metadata": {
"patch": {
"operationId": "ChangeAppMetadata",
"responses": {
Expand Down Expand Up @@ -1343,7 +1349,7 @@
}
}
},
"/api/v3/apps/{slug}/zip/draft": {
"/api/v3/apps/{slug}/draft/zip": {
"get": {
"operationId": "GetLatestPublishedZip",
"responses": {
Expand Down
26 changes: 13 additions & 13 deletions src/generated/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
/* eslint-disable */
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import type { TsoaRoute } from "@tsoa/runtime";
import { ExpressTemplateService, fetchMiddlewares } from "@tsoa/runtime";
import { fetchMiddlewares, ExpressTemplateService } from "@tsoa/runtime";
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { PublicRestController } from "./../controllers/public-rest.js";
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { PrivateRestController } from "./../controllers/private-rest.js";
import type {
Request as ExRequest,
RequestHandler,
Response as ExResponse,
RequestHandler,
Router,
} from "express";

Expand Down Expand Up @@ -107,7 +107,7 @@ const models: TsoaRoute.Models = {
created_at: { dataType: "datetime", required: true },
updated_at: { dataType: "datetime", required: true },
deleted_at: { dataType: "datetime" },
id: { dataType: "string", required: true },
id: { dataType: "double", required: true },
email: { dataType: "string", required: true },
admin: { dataType: "boolean", required: true },
name: { dataType: "string", required: true },
Expand Down Expand Up @@ -266,7 +266,7 @@ const models: TsoaRoute.Models = {
dataType: "refObject",
properties: {
slug: { dataType: "string", required: true },
user_id: { dataType: "string", required: true },
user_id: { dataType: "double", required: true },
git: { dataType: "string" },
allow_team_fixes: { dataType: "boolean" },
created_at: { dataType: "datetime", required: true },
Expand Down Expand Up @@ -366,7 +366,7 @@ const models: TsoaRoute.Models = {
version_id: { dataType: "double" },
git: { dataType: "string" },
allow_team_fixes: { dataType: "boolean" },
user_id: { dataType: "string", required: true },
user_id: { dataType: "double", required: true },
},
validators: {},
},
Expand All @@ -378,7 +378,7 @@ const models: TsoaRoute.Models = {
version_id: { dataType: "double" },
git: { dataType: "string" },
allow_team_fixes: { dataType: "boolean" },
user_id: { dataType: "string", required: true },
user_id: { dataType: "double", required: true },
},
additionalProperties: false,
},
Expand All @@ -389,7 +389,7 @@ const models: TsoaRoute.Models = {
version_id: { dataType: "double" },
git: { dataType: "string" },
allow_team_fixes: { dataType: "boolean" },
user_id: { dataType: "string" },
user_id: { dataType: "double" },
},
additionalProperties: false,
},
Expand Down Expand Up @@ -848,7 +848,7 @@ export function RegisterRoutes(app: Router) {
in: "path",
name: "userId",
required: true,
dataType: "string",
dataType: "double",
},
props: { in: "body", name: "props", required: true, ref: "UserProps" },
};
Expand Down Expand Up @@ -1018,7 +1018,7 @@ export function RegisterRoutes(app: Router) {
);
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.post(
"/api/v3/apps/:slug/files/draft/:filePath",
"/api/v3/apps/:slug/draft/files/:filePath",
...fetchMiddlewares<RequestHandler>(PrivateRestController),
...fetchMiddlewares<RequestHandler>(
PrivateRestController.prototype.writeFile
Expand Down Expand Up @@ -1073,7 +1073,7 @@ export function RegisterRoutes(app: Router) {
);
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.patch(
"/api/v3/apps/:slug/metadata/draft",
"/api/v3/apps/:slug/draft/metadata",
...fetchMiddlewares<RequestHandler>(PrivateRestController),
...fetchMiddlewares<RequestHandler>(
PrivateRestController.prototype.changeAppMetadata
Expand Down Expand Up @@ -1121,7 +1121,7 @@ export function RegisterRoutes(app: Router) {
);
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.get(
"/api/v3/apps/:slug/files/draft/:filePath",
"/api/v3/apps/:slug/draft/files/:filePath",
...fetchMiddlewares<RequestHandler>(PrivateRestController),
...fetchMiddlewares<RequestHandler>(
PrivateRestController.prototype.getDraftFile
Expand Down Expand Up @@ -1169,7 +1169,7 @@ export function RegisterRoutes(app: Router) {
);
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.get(
"/api/v3/apps/:slug/zip/draft",
"/api/v3/apps/:slug/draft/zip",
...fetchMiddlewares<RequestHandler>(PrivateRestController),
...fetchMiddlewares<RequestHandler>(
PrivateRestController.prototype.getLatestPublishedZip
Expand Down Expand Up @@ -1211,7 +1211,7 @@ export function RegisterRoutes(app: Router) {
);
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.post(
"/api/v3/apps/:slug/zip/draft",
"/api/v3/apps/:slug/draft/zip",
...fetchMiddlewares<RequestHandler>(PrivateRestController),
...fetchMiddlewares<RequestHandler>(
PrivateRestController.prototype.writeZip
Expand Down

0 comments on commit 79342cb

Please sign in to comment.