lib/open_api_spex/license.ex
defmodule OpenApiSpex.License do
@moduledoc """
Defines the `OpenApiSpex.License.t` type.
"""
@enforce_keys :name
defstruct [
:name,
:url,
:extensions
]
@typedoc """
[License Object](https://swagger.io/specification/#licenseObject)
License information for the exposed API.
"""
@type t :: %__MODULE__{
name: String.t(),
url: String.t() | nil,
extensions: %{String.t() => any()} | nil
}
end