chore(server): update openapi (#2205)

This commit is contained in:
Michel Heusschen 2023-04-09 04:26:09 +02:00 committed by GitHub
parent 91e27affeb
commit 983abf5e14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 756 additions and 1458 deletions

View file

@ -13,10 +13,11 @@
*/
import { Configuration } from "./configuration";
import type { Configuration } from './configuration';
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
export const BASE_PATH = "/api".replace(/\/+$/, "");
@ -64,8 +65,8 @@ export class BaseAPI {
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
this.name = "RequiredError"
}
}