diff --git a/package.json b/package.json index 0424ab9..64c8119 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dapir", - "version": "1.4.0", + "version": "1.4.1", "type": "module", "description": "An api wrapper", "source": "src/index.ts", diff --git a/src/documentation/index.ts b/src/documentation/index.ts index 93a1b87..a86d8f0 100644 --- a/src/documentation/index.ts +++ b/src/documentation/index.ts @@ -63,7 +63,7 @@ export default class Documentation { this.addSchema("GenericResponse", { type: "object", - required: ["success", "code", "status"], + required: ["error", "code", "status", "message"], properties: { error: { type: "boolean",