fix: ✏️ typo in API docs + errors
Co-authored-by: naskya <m@naskya.net>
This commit is contained in:
parent
9eb130880d
commit
8a45d25912
|
@ -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 New Issue