PleromaAPI: Change EmojiReact to invisible post response from 400 to 404

This commit is contained in:
Phantasm 2025-12-11 22:31:30 +01:00
commit 73a3f06f71
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8
5 changed files with 36 additions and 18 deletions

View file

@ -0,0 +1,19 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Schemas.ApiNotFoundError do
alias OpenApiSpex.Schema
require OpenApiSpex
OpenApiSpex.schema(%{
title: "Not Found",
description: "Response schema for 404 API errors",
type: :object,
properties: %{error: %Schema{type: :string}},
example: %{
"error" => "Record not found"
}
})
end