# Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI) # This software may be modified and distributed under the terms of # the BSD 3-Clause license. See the LICENSE file for details. defmodule SchemaLoader do @moduledoc false @behaviour Xema.Loader @spec fetch(URI.t()) :: {:ok, any} | {:error, any} def fetch(uri), do: "schema/v1" |> Path.join(uri.path) |> File.read!() |> Jason.decode() end