瀏覽代碼

Merge branch 'fix/openapi-relationship-nullable' into 'develop'

Account schema: specify that pleroma.relationship is nullable

See merge request pleroma/pleroma!3299
youtube-fix
rinpatch 3 年之前
父節點
當前提交
a7864a9429
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      lib/pleroma/web/api_spec/helpers.ex
  2. +1
    -1
      lib/pleroma/web/api_spec/schemas/account.ex
  3. +1
    -1
      lib/pleroma/web/api_spec/schemas/account_relationship.ex

+ 1
- 1
lib/pleroma/web/api_spec/helpers.ex 查看文件

@@ -63,7 +63,7 @@ defmodule Pleroma.Web.ApiSpec.Helpers do
:with_relationships,
:query,
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



+ 1
- 1
lib/pleroma/web/api_spec/schemas/account.ex 查看文件

@@ -96,7 +96,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Account do
hide_notification_contents: %Schema{type: :boolean}
}
},
relationship: AccountRelationship,
relationship: %Schema{allOf: [AccountRelationship], nullable: true},
settings_store: %Schema{
type: :object,
description:


+ 1
- 1
lib/pleroma/web/api_spec/schemas/account_relationship.ex 查看文件

@@ -10,7 +10,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.AccountRelationship do

OpenApiSpex.schema(%{
title: "AccountRelationship",
description: "Response schema for relationship",
description: "Relationship between current account and requested account",
type: :object,
properties: %{
blocked_by: %Schema{type: :boolean},


Loading…
取消
儲存