Skip to content

Commit f074d53

Browse files
Splits the parser and printing into separate repos (#72)
All the JSON schema parser logic (and types) have been moved to https://github.com/dragonwasrobot/json_schema, and is also available via hex.pm. This repo now only includes the printer logic, cmd line wrapper and error reporting. This PR closes issue #71
1 parent 1bab5cc commit f074d53

File tree

82 files changed

+132
-3552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+132
-3552
lines changed

.tool-versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
erlang 20.1
2-
elixir 1.6.3
1+
erlang 21.0
2+
elixir 1.7.0

coveralls.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"coverage_options": {
33
"treat_no_relevant_lines_as_covered": true,
4-
"minimum_coverage": 80
4+
"minimum_coverage": 70
55
}
66
}

lib/js2e.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ defmodule JS2E do
1818
"""
1919

2020
require Logger
21-
alias JS2E.{Parser, Printer}
22-
alias Parser.{ParserError, ParserWarning}
21+
alias JS2E.Printer
22+
alias JsonSchema.Parser.{ParserError, ParserWarning}
2323
alias Printer.PrinterError
2424

2525
@output_location Application.get_env(:js2e, :output_location)
@@ -116,7 +116,7 @@ defmodule JS2E do
116116
@spec generate([String.t()], String.t()) :: :ok
117117
def generate(schema_paths, module_name) do
118118
Logger.info("Parsing JSON schema files!")
119-
parser_result = Parser.parse_schema_files(schema_paths)
119+
parser_result = JsonSchema.parse_schema_files(schema_paths)
120120

121121
pretty_parser_warnings(parser_result.warnings)
122122

lib/parser/all_of_parser.ex

-90
This file was deleted.

lib/parser/any_of_parser.ex

-89
This file was deleted.

lib/parser/array_parser.ex

-69
This file was deleted.

lib/parser/definitions_parser.ex

-67
This file was deleted.

0 commit comments

Comments
 (0)