Skip to content

Commit

Permalink
test: add proposed changes from vrchatapi#352 to test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkubectl committed Jul 27, 2024
1 parent e43a875 commit 8c04499
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ description: OK
content:
application/json:
schema:
$ref: ../../schemas/CurrentUser.yaml
x-feature:
required-features: [oneOf]
desired:
oneOf:
- $ref: ../../schemas/CurrentUser.yaml
- $ref: ../../schemas/TwoFactorRequired.yaml
fallback:
$ref: ../../schemas/CurrentUser.yaml
headers:
Set-Cookie:
schema:
type: string
example: 'auth=authcookie_00000000-0000-0000-0000-000000000000; Expires=Tue, 01 Jan 2030 00:00:00 GMT; Path=/; HttpOnly'
example: "auth=authcookie_00000000-0000-0000-0000-000000000000; Expires=Tue, 01 Jan 2030 00:00:00 GMT; Path=/; HttpOnly"
description: Successful authentication returns an `auth` cookie.
13 changes: 13 additions & 0 deletions openapi/components/schemas/TwoFactorRequired.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title: TwoFactorRequired
type: object
properties:
requiresTwoFactorAuth:
type: array
items:
type: string
enum:
- totp
- otp
- emailOtp
required:
- requiresTwoFactorAuth

0 comments on commit 8c04499

Please sign in to comment.