summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2022-07-21 21:27:16 +0000
committertusooa <tusooa@kazv.moe>2022-07-21 21:27:16 +0000
commitc589b8445f1479b25d31984176f3741def83bcaa (patch)
treeb8cffef4185d56eb03b12d92d6ce641481b68d76 /lib
parent454f892f37d7a940068f560583a5cf4f6fd28124 (diff)
parent4350a205a4251760773b7ade75c882f4295d6cb0 (diff)
downloadpleroma-c589b8445f1479b25d31984176f3741def83bcaa.tar.gz
pleroma-c589b8445f1479b25d31984176f3741def83bcaa.zip
Merge branch 'birthday_fix' into 'develop'
Allow to unset birthday See merge request pleroma/pleroma!3702
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/api_spec/operations/account_operation.ex24
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex
index a64762285..4111d1613 100644
--- a/lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/account_operation.ex
@@ -545,10 +545,18 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
description: "Invite token required when the registrations aren't public"
},
birthday: %Schema{
- type: :string,
nullable: true,
description: "User's birthday",
- format: :date
+ anyOf: [
+ %Schema{
+ type: :string,
+ format: :date
+ },
+ %Schema{
+ type: :string,
+ maxLength: 0
+ }
+ ]
},
language: %Schema{
type: :string,
@@ -733,10 +741,18 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
},
actor_type: ActorType,
birthday: %Schema{
- type: :string,
nullable: true,
description: "User's birthday",
- format: :date
+ anyOf: [
+ %Schema{
+ type: :string,
+ format: :date
+ },
+ %Schema{
+ type: :string,
+ maxLength: 0
+ }
+ ]
},
show_birthday: %Schema{
allOf: [BooleanLike],