You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible_web/plugins/api/schemas/link.ex

14 lines
286 B
Elixir

defmodule PlausibleWeb.Plugins.API.Schemas.Link do
@moduledoc """
OpenAPI Link schema
"""
use PlausibleWeb, :open_api_schema
OpenApiSpex.schema(%{
title: "Link",
type: :object,
required: [:url],
properties: %{url: %OpenApiSpex.Schema{type: :string}}
})
end