description:
"Accounts which follow the given account, if network is not hidden by the account owner.",
parameters:
- [%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}] ++ pagination_params(),
+ [%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}] ++
+ pagination_params() ++ [embed_relationships_param()],
responses: %{
200 => Operation.response("Accounts", "application/json", array_of_accounts())
}
description:
"Accounts which the given account is following, if network is not hidden by the account owner.",
parameters:
- [%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}] ++ pagination_params(),
+ [%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}] ++
+ pagination_params() ++ [embed_relationships_param()],
responses: %{200 => Operation.response("Accounts", "application/json", array_of_accounts())}
}
end
}
end
- defp array_of_accounts do
+ def array_of_accounts do
%Schema{
title: "ArrayOfAccounts",
type: :array,
- items: Account
+ items: Account,
+ example: [Account.schema().example]
}
end