Skip to content

Commit

Permalink
update schema names
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriqueMoe committed Mar 21, 2024
1 parent 8f97100 commit abe3108
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/model/dto/EntryModificationDto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Description, Optional, Property } from "@tsed/schema";
import { Description, Name, Optional, Property } from "@tsed/schema";
import { BadRequest } from "@tsed/exceptions";
import { BeforeDeserialize } from "@tsed/json-mapper";

Expand All @@ -15,6 +15,8 @@ import { BeforeDeserialize } from "@tsed/json-mapper";
}
return data;
})
@Name("WaifuModification")
@Description("A modify request to change components of an entry")
export class EntryModificationDto {
@Property()
@Optional()
Expand Down
4 changes: 3 additions & 1 deletion src/model/dto/FileUploadResponseDto.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Description, Nullable, Property } from "@tsed/schema";
import { Description, Name, Nullable, Property } from "@tsed/schema";
import { FileUploadModel } from "../db/FileUpload.model.js";
import { Builder } from "builder-pattern";
import { ObjectUtils } from "../../utils/Utils.js";

@Name("WaifuResponse")
@Description("This is a standard response for the service, containing info about the entry")
export class FileUploadResponseDto {
@Property()
@Description("Used for file info and deleting")
Expand Down
4 changes: 3 additions & 1 deletion src/model/rest/DefaultRenderException.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Description, Property } from "@tsed/schema";
import { Description, Name, Property } from "@tsed/schema";

@Name("WaifuError")
@Description("A standard error, all errors from the service will take this shape")
export class DefaultRenderException {
@Property()
@Description("The name of the error, this is normally the HTTP exception thrown")
Expand Down

0 comments on commit abe3108

Please sign in to comment.