View Source ExOAPI.Generator.Helpers (ex_oapi v0.1.5)

Link to this section Summary

Functions

Extracts a definition according to a ref path in a %ExOAPI.Parser.V3.Context.t().

Returns all valid http verbs.

Link to this section Functions

Link to this function

add_type_param(map, arg2, ctx, base_title)

View Source
Link to this function

build_cast_array(schema_properties, schemas, base_title)

View Source
Link to this function

build_cast_embeds(schema_properties, schemas, base_title, required)

View Source
Link to this function

build_docs_for_schema(schema, schemas, title, initial_string \\ "@moduledoc \"\"\"", end_string \\ ~s(\n"""))

View Source
Link to this function

build_response_spec(arg1, ctx, base_title)

View Source
Link to this function

build_schema_field(schema, name, schemas, base_title)

View Source
Link to this function

build_schema_props_docs(schema, schemas, title, field_name \\ nil)

View Source
Link to this function

build_specification(encoding, schema, schemas, base_title)

View Source
Link to this function

build_specs(call, ctx, schemas_title, optional_form, name)

View Source
Link to this function

build_specs(call, ctx, schemas_title, atom, _, _)

View Source
Link to this function

build_types_from_content_schemas(schemas, ctx, base_title, outer_acc \\ {[], false, false})

View Source
Link to this function

build_validate_required(schema_properties, schemas, base_title, required)

View Source
Link to this function

client_body_funs(call, optional_type)

View Source
Link to this function

extract_ref(full_ref, ctx, identifiers \\ %{})

View Source

Extracts a definition according to a ref path in a %ExOAPI.Parser.V3.Context.t().

Link to this function

fun_args(call, optional_args_type, first_arg \\ ["%ExOAPI.Client{} = client"])

View Source

Returns all valid http verbs.

Link to this function

is_required?(name, required)

View Source
Link to this function

join(base, split, joiner \\ ".")

View Source
Link to this function

maybe_add_arg(args, type, to_add)

View Source
Link to this function

maybe_add_arg_type(args, type, to_add, ctx, title)

View Source
Link to this function

maybe_add_client_fun(body_funs, to_add)

View Source
Link to this function

maybe_add_opt_arg(args, type_form, arg3)

View Source
Link to this function

maybe_add_opt_type(args, arg2, name, arg4)

View Source
Link to this function

maybe_add_optional(arg, atom)

View Source
Link to this function

maybe_add_optional_fun(body_funs, to_add, optional_type)

View Source
Link to this function

maybe_additional_props(encoding, props, schemas, base_title)

View Source
Link to this function

maybe_build_opts_type(arg1, arg2, name)

View Source
Link to this function

maybe_required_embed(name, required)

View Source
Link to this function

schemas_title(title, default \\ ["ExOAPI", "Schemas"])

View Source
Link to this function

type_of_schema(schema, schemas, base_title)

View Source