mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
fix(backend): correct invalid schema format specifying only required for anyOf (#16089)
* fix(backend): correct invalid schema format specifying only `required` for `anyOf` * refactor(backend): make types derived from `allOf` or `anyOf` more strong
This commit is contained in:
@@ -7306,8 +7306,9 @@ export type operations = {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
fileId?: string;
|
||||
url?: string;
|
||||
fileId: string;
|
||||
} | {
|
||||
url: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -8093,10 +8094,12 @@ export type operations = {
|
||||
admin___emoji___update: {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'application/json': ({
|
||||
/** Format: misskey:id */
|
||||
id?: string;
|
||||
name?: string;
|
||||
id: string;
|
||||
} | {
|
||||
name: string;
|
||||
}) & ({
|
||||
/** Format: misskey:id */
|
||||
fileId?: string;
|
||||
/** @description Use `null` to reset the category. */
|
||||
@@ -8106,7 +8109,7 @@ export type operations = {
|
||||
isSensitive?: boolean;
|
||||
localOnly?: boolean;
|
||||
roleIdsThatCanBeUsedThisEmojiAsReaction?: string[];
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
@@ -16996,8 +16999,9 @@ export type operations = {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
fileId?: string;
|
||||
url?: string;
|
||||
fileId: string;
|
||||
} | {
|
||||
url: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -23096,9 +23100,10 @@ export type operations = {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
tokenId?: string;
|
||||
token?: string | null;
|
||||
};
|
||||
tokenId: string;
|
||||
} | ({
|
||||
token: string | null;
|
||||
});
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
@@ -25784,7 +25789,12 @@ export type operations = {
|
||||
'notes___search-by-tag': {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'application/json': ({
|
||||
tag: string;
|
||||
} | {
|
||||
/** @description The outer arrays are chained with OR, the inner arrays are chained with AND. */
|
||||
query: string[][];
|
||||
}) & ({
|
||||
/** @default null */
|
||||
reply?: boolean | null;
|
||||
/** @default null */
|
||||
@@ -25802,10 +25812,7 @@ export type operations = {
|
||||
untilId?: string;
|
||||
/** @default 10 */
|
||||
limit?: number;
|
||||
tag?: string;
|
||||
/** @description The outer arrays are chained with OR, the inner arrays are chained with AND. */
|
||||
query?: string[][];
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
@@ -26890,9 +26897,10 @@ export type operations = {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
pageId?: string;
|
||||
name?: string;
|
||||
username?: string;
|
||||
pageId: string;
|
||||
} | {
|
||||
name: string;
|
||||
username: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -28979,18 +28987,20 @@ export type operations = {
|
||||
users___followers: {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'application/json': ({
|
||||
/** Format: misskey:id */
|
||||
userId: string;
|
||||
} | ({
|
||||
username: string;
|
||||
/** @description The local host is represented with `null`. */
|
||||
host: string | null;
|
||||
})) & {
|
||||
/** Format: misskey:id */
|
||||
sinceId?: string;
|
||||
/** Format: misskey:id */
|
||||
untilId?: string;
|
||||
/** @default 10 */
|
||||
limit?: number;
|
||||
/** Format: misskey:id */
|
||||
userId?: string;
|
||||
username?: string;
|
||||
/** @description The local host is represented with `null`. */
|
||||
host?: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -29042,20 +29052,22 @@ export type operations = {
|
||||
users___following: {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'application/json': ({
|
||||
/** Format: misskey:id */
|
||||
userId: string;
|
||||
} | ({
|
||||
username: string;
|
||||
/** @description The local host is represented with `null`. */
|
||||
host: string | null;
|
||||
})) & ({
|
||||
/** Format: misskey:id */
|
||||
sinceId?: string;
|
||||
/** Format: misskey:id */
|
||||
untilId?: string;
|
||||
/** @default 10 */
|
||||
limit?: number;
|
||||
/** Format: misskey:id */
|
||||
userId?: string;
|
||||
username?: string;
|
||||
/** @description The local host is represented with `null`. */
|
||||
host?: string | null;
|
||||
birthday?: string | null;
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
@@ -30337,13 +30349,15 @@ export type operations = {
|
||||
'users___search-by-username-and-host': {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'application/json': (({
|
||||
username: string | null;
|
||||
}) | ({
|
||||
host: string | null;
|
||||
})) & {
|
||||
/** @default 10 */
|
||||
limit?: number;
|
||||
/** @default true */
|
||||
detail?: boolean;
|
||||
username?: string | null;
|
||||
host?: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -30395,14 +30409,17 @@ export type operations = {
|
||||
users___show: {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
'application/json': ({
|
||||
/** Format: misskey:id */
|
||||
userId?: string;
|
||||
userIds?: string[];
|
||||
username?: string;
|
||||
userId: string;
|
||||
} | {
|
||||
userIds: string[];
|
||||
} | {
|
||||
username: string;
|
||||
}) & ({
|
||||
/** @description The local host is represented with `null`. */
|
||||
host?: string | null;
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
|
||||
Reference in New Issue
Block a user