mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
fix: ✏️ typo in API docs + errors
Co-authored-by: naskya <m@naskya.net>
This commit is contained in:
parent
7878ff2a6d
commit
5e7e5e7da8
@ -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}`);
|
||||
|
@ -182,7 +182,7 @@ export function genOpenapiSpec() {
|
||||
...(endpoint.meta.limit
|
||||
? {
|
||||
"429": {
|
||||
description: "To many requests",
|
||||
description: "Too many requests",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: {
|
||||
|
Loading…
Reference in New Issue
Block a user