fix: ✏️ typo in API docs + errors

Co-authored-by: naskya <m@naskya.net>
This commit is contained in:
ThatOneCalculator 2023-06-22 16:53:56 -07:00
parent 9eb130880d
commit 8a45d25912
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
2 changed files with 3 additions and 3 deletions

View File

@ -26,11 +26,11 @@ export async function createImage(
const image = (await new Resolver().resolve(value)) as any;
if (image.url == null) {
throw new Error("invalid image: url not privided");
throw new Error("Invalid image, URL not provided");
}
if (!image.url.startsWith("https://") && !image.url.startsWith("http://")) {
throw new Error("invalid image: unexpected shcema of url: " + image.url);
throw new Error(`Invalid image, unexpected schema: ${image.url}`);
}
logger.info(`Creating the Image: ${image.url}`);

View File

@ -182,7 +182,7 @@ export function genOpenapiSpec() {
...(endpoint.meta.limit
? {
"429": {
description: "To many requests",
description: "Too many requests",
content: {
"application/json": {
schema: {