defmodule GitHub.PrivateVulnerabilityReport.Create do
@moduledoc """
Provides struct and type for a PrivateVulnerabilityReport.Create
"""
use GitHub.Encoder
@type t :: %__MODULE__{
__info__: map,
cvss_vector_string: String.t() | nil,
cwe_ids: [String.t()] | nil,
description: String.t(),
severity: String.t() | nil,
start_private_fork: boolean | nil,
summary: String.t(),
vulnerabilities: [map] | nil
}
defstruct [
:__info__,
:cvss_vector_string,
:cwe_ids,
:description,
:severity,
:start_private_fork,
:summary,
:vulnerabilities
]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
cvss_vector_string: {:union, [{:string, :generic}, :null]},
cwe_ids: {:union, [[string: :generic], :null]},
description: {:string, :generic},
severity: {:enum, ["critical", "high", "medium", "low", nil]},
start_private_fork: :boolean,
summary: {:string, :generic},
vulnerabilities: {:union, [[:map], :null]}
]
end
end