diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json index 374e5d4ba0..6b714461eb 100644 --- a/backend/oauth_connect.json +++ b/backend/oauth_connect.json @@ -62,5 +62,12 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "discord": { + "auth_url": "https://discordapp.com/api/oauth2/authorize", + "token_url": "https://discordapp.com/api/oauth2/token", + "scopes": [ + "bot" + ] } } diff --git a/backend/openapi.yaml b/backend/openapi.yaml index 5fa573516f..55d38b3073 100644 --- a/backend/openapi.yaml +++ b/backend/openapi.yaml @@ -2087,14 +2087,7 @@ paths: content: application/json: schema: - allOf: - - $ref: "../openflow.openapi.yaml#/components/schemas/OpenFlow" - - type: object - properties: - path: - type: string - required: - - path + $ref: "#/components/schemas/OpenFlowWPath" responses: "201": @@ -2119,14 +2112,7 @@ paths: content: application/json: schema: - allOf: - - $ref: "../openflow.openapi.yaml#/components/schemas/OpenFlow" - - type: object - properties: - path: - type: string - required: - - path + $ref: "#/components/schemas/OpenFlowWPath" responses: "200": @@ -3159,7 +3145,6 @@ components: # explode: false schemas: - $ref: "../openflow.openapi.yaml#/components/schemas" Script: type: object properties: @@ -3999,6 +3984,16 @@ components: - archived - extra_perms + OpenFlowWPath: + allOf: + - $ref: "../openflow.openapi.yaml#/components/schemas/OpenFlow" + - type: object + properties: + path: + type: string + required: + - path + FlowPreview: type: object properties: