Skip to content

Commit

Permalink
deduplicate schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackebein committed Dec 17, 2024
1 parent e18ac0a commit 2c77170
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 6 additions & 0 deletions openapi/components/schemas/AgeVerificationStatus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: AgeVerificationStatus
type: string
enum:
- hidden
- verified
- 18+
6 changes: 1 addition & 5 deletions openapi/components/schemas/CurrentUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ properties:
items:
$ref: ./UserID.yaml
ageVerificationStatus:
type: string
enum:
- hidden
- verified
- 18+
$ref: ./AgeVerificationStatus.yaml
ageVerified:
type: boolean
allowAvatarCopying:
Expand Down
6 changes: 1 addition & 5 deletions openapi/components/schemas/User.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ title: User
type: object
properties:
ageVerificationStatus:
type: string
enum:
- hidden
- verified
- 18+
$ref: ./AgeVerificationStatus.yaml
allowAvatarCopying:
type: boolean
default: true
Expand Down

0 comments on commit 2c77170

Please sign in to comment.