Packages
Robust API call planning and execution for Torn City
Current section
Files
Jump to
Current section
Files
lib/torngen_client/schema/ForumId.ex
defmodule Torngen.Client.Schema.ForumId do
@moduledoc false
@behaviour Torngen.Client.Schema
@type t :: integer()
@impl true
def parse(value) do
if validate?(value) do
value
else
nil
end
end
@impl true
def validate?(value), do: Torngen.Client.Schema.validate?(value, {:static, :integer})
end