PhoenixSwagger.Validator.parse_swagger_schema

You're seeing just the function parse_swagger_schema, go back to PhoenixSwagger.Validator module for more information.
Link to this function

parse_swagger_schema(specs)

View Source

The parse_swagger_schema/1 takes path or list of paths to a swagger schema(s), parses it/them into ex_json_schema format and store to the validator_table ets table.

Examples

iex(1)> parse_swagger_schema("my_json_spec.json")
[{"/person",  %{'__struct__' => 'Elixir.ExJsonSchema.Schema.Root',
                location => root,
                refs => %{},
                schema => %{
                  "properties" => %{
                    "name" => %{"type" => "string"},
                    "age" => %{"type" => "integer"}
                  }
                }
              }
}]