Allow to unset birthday
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
3193f18cf3
commit
fb268c4378
2 changed files with 34 additions and 4 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue