From 392d6b2a90745308bc184de3fe51b02b21d7a664 Mon Sep 17 00:00:00 2001 From: Nobody Date: Tue, 8 Mar 2022 10:52:48 -0300 Subject: fix(api): working invisible status type --- api/assets/openapi.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/assets/openapi.json') diff --git a/api/assets/openapi.json b/api/assets/openapi.json index 1af0600d..03550323 100644 --- a/api/assets/openapi.json +++ b/api/assets/openapi.json @@ -3119,7 +3119,7 @@ "type": "boolean" }, "status": { - "enum": ["dnd", "idle", "offline", "online"], + "enum": ["dnd", "idle", "offline", "online", "invisible"], "type": "string" }, "stream_notifications_enabled": { @@ -5677,7 +5677,7 @@ "type": "boolean" }, "status": { - "enum": ["dnd", "idle", "offline", "online"], + "enum": ["dnd", "idle", "offline", "online", "invisible"], "type": "string" }, "stream_notifications_enabled": { -- cgit 1.5.1 From aa7a5b126be9e23a230d3ec8315ff5fb663df4de Mon Sep 17 00:00:00 2001 From: Erkin Alp Güney Date: Mon, 14 Mar 2022 19:45:25 +0300 Subject: close issue #684 --- api/assets/openapi.json | 4 ++-- api/assets/schemas.json | 4 ++-- util/src/entities/ConnectedAccount.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'api/assets/openapi.json') diff --git a/api/assets/openapi.json b/api/assets/openapi.json index 03550323..8e2a54cf 100644 --- a/api/assets/openapi.json +++ b/api/assets/openapi.json @@ -2960,7 +2960,7 @@ "type": { "type": "string" }, - "verifie": { + "verified": { "type": "boolean" }, "visibility": { @@ -2980,7 +2980,7 @@ "type", "user", "user_id", - "verifie", + "verified", "visibility" ] }, diff --git a/api/assets/schemas.json b/api/assets/schemas.json index d531df21..441752ad 100644 --- a/api/assets/schemas.json +++ b/api/assets/schemas.json @@ -355,11 +355,11 @@ "type": { "type": "string" }, - "verifie": { + "verified": { "type": "boolean" } }, - "required": ["name", "type", "verifie"] + "required": ["name", "type", "verified"] } }, "$schema": "http://json-schema.org/draft-07/schema#" diff --git a/util/src/entities/ConnectedAccount.ts b/util/src/entities/ConnectedAccount.ts index b8aa2889..09ae30ab 100644 --- a/util/src/entities/ConnectedAccount.ts +++ b/util/src/entities/ConnectedAccount.ts @@ -2,7 +2,7 @@ import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; -export interface PublicConnectedAccount extends Pick {} +export interface PublicConnectedAccount extends Pick {} @Entity("connected_accounts") export class ConnectedAccount extends BaseClass { @@ -35,7 +35,7 @@ export class ConnectedAccount extends BaseClass { type: string; @Column() - verifie: boolean; + verified: boolean; @Column({ select: false }) visibility: number; -- cgit 1.5.1 From e20fd0454725d57d3fb1e7d7faca381991a7a6a0 Mon Sep 17 00:00:00 2001 From: SpacingBat3 Date: Tue, 1 Mar 2022 23:33:19 +0100 Subject: Fix `servers[0].url` in `openapi.json`. A tiny fix within `openapi.json`, that changes the URL in servers property to the correct ones. --- api/assets/openapi.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/assets/openapi.json') diff --git a/api/assets/openapi.json b/api/assets/openapi.json index 8e2a54cf..a8a657b2 100644 --- a/api/assets/openapi.json +++ b/api/assets/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "servers": [ { - "url": "https://api.fosscord.com/v{version}", + "url": "https://api.fosscord.com/api/v{version}", "description": "Official fosscord instance", "variables": { "version": { -- cgit 1.5.1