mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
fix: ✏️ typo in API docs + errors
Co-authored-by: naskya <m@naskya.net>
This commit is contained in:
parent
7878ff2a6d
commit
5e7e5e7da8
2 changed files with 3 additions and 3 deletions
|
@ -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}`);
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Loading…
Reference in a new issue