mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
Merge branch 'fix/openapi-relationship-nullable' into 'develop'
Account schema: specify that pleroma.relationship is nullable See merge request pleroma/pleroma!3299
This commit is contained in:
commit
a7864a9429
3 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ defmodule Pleroma.Web.ApiSpec.Helpers do
|
||||||
:with_relationships,
|
:with_relationships,
|
||||||
:query,
|
:query,
|
||||||
BooleanLike,
|
BooleanLike,
|
||||||
"Embed relationships into accounts."
|
"Embed relationships into accounts. **If this parameter is not set account's `pleroma.relationship` is going to be `null`.**"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Account do
|
||||||
hide_notification_contents: %Schema{type: :boolean}
|
hide_notification_contents: %Schema{type: :boolean}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
relationship: AccountRelationship,
|
relationship: %Schema{allOf: [AccountRelationship], nullable: true},
|
||||||
settings_store: %Schema{
|
settings_store: %Schema{
|
||||||
type: :object,
|
type: :object,
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -10,7 +10,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.AccountRelationship do
|
||||||
|
|
||||||
OpenApiSpex.schema(%{
|
OpenApiSpex.schema(%{
|
||||||
title: "AccountRelationship",
|
title: "AccountRelationship",
|
||||||
description: "Response schema for relationship",
|
description: "Relationship between current account and requested account",
|
||||||
type: :object,
|
type: :object,
|
||||||
properties: %{
|
properties: %{
|
||||||
blocked_by: %Schema{type: :boolean},
|
blocked_by: %Schema{type: :boolean},
|
||||||
|
|
Loading…
Reference in a new issue