Current section

Files

Jump to
ex_open_api_utils lib ex_open_api_utils schema_definition.ex
Raw

lib/ex_open_api_utils/schema_definition.ex

defmodule ExOpenApiUtils.SchemaDefinition do
@enforce_keys [:title, :description]
defstruct title: nil,
required: [],
properties: [],
description: "",
tags: [],
type: :object,
nullable: nil
@type t :: %__MODULE__{
title: bitstring(),
required: list(atom()),
properties: list(atom()),
description: bitstring(),
tags: list(String.t()),
type: atom(),
nullable: boolean() | nil
}
end