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 7878ff2a6d
commit 5e7e5e7da8
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; const image = (await new Resolver().resolve(value)) as any;
if (image.url == null) { 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://")) { 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}`); logger.info(`Creating the Image: ${image.url}`);

View file

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