analytics / lib /plausible_web /plugins /api /schemas /custom_prop.ex
Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
88211d3 verified
Raw
History Blame Contribute Delete
586 Bytes
defmodule PlausibleWeb.Plugins.API.Schemas.CustomProp do
@moduledoc """
OpenAPI schema for Goal
"""
use PlausibleWeb, :open_api_schema
OpenApiSpex.schema(%{
title: "CustomProp",
description: "Custom Property object",
type: :object,
required: [:custom_prop],
properties: %{
custom_prop: %Schema{
type: :object,
required: [:key],
properties: %{
key: %Schema{type: :string, description: "Custom Property Key"}
}
}
},
example: %{
custom_prop: %{
key: "author"
}
}
})
end