JSV.Resolver.Internal (jsv v0.7.2)

View Source

A JSV.Resolver implementation that resolves URIs pointing to the application code base or JSV code base.

A custom resolver implementation should delegate jsv: prefixed URIs to this module to enable support of the internal resolutions features.

Module based schemas

This resolver will resolve jsv:module:MODULE URIs where MODULE is a string representation of an Elixir module. Modules pointed at with such references MUST export a schema/0 function that returns a normalized (with binary keys and values) JSON schema.

Summary

Functions

Returns a JSV internal URI for the given module.

Functions

module_to_uri(module)

@spec module_to_uri(module()) :: binary()

Returns a JSV internal URI for the given module.

Example

iex> module_to_uri(Inspect.Opts)
"jsv:module:Elixir.Inspect.Opts"