Current section

Files

Jump to
oaspec src oaspec@internal@openapi@value.erl
Raw

src/oaspec@internal@openapi@value.erl

-module(oaspec@internal@openapi@value).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/oaspec/internal/openapi/value.gleam").
-export_type([json_value/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(false).
-type json_value() :: json_null |
{json_bool, boolean()} |
{json_int, integer()} |
{json_float, float()} |
{json_string, binary()} |
{json_array, list(json_value())} |
{json_object, gleam@dict:dict(binary(), json_value())}.