Stancer.OpenAPILoader (stancer v0.1.0)

Copy Markdown

Loads the Stancer OpenAPI specification with intelligent fallback.

  1. Tries to download from Stancer
  2. Falls back to cached version in priv/openapi.json
  3. Logs version info when using cached version

Summary

Functions

download_spec_now!()

extract_endpoints(spec)

load_spec()

@spec load_spec() :: {:ok, map()} | {:error, String.t()}

load_spec!()

@spec load_spec!() :: map()

param_to_elixir_type(param)