Current section

17 Versions

Jump to

Compare versions

7 files changed
+17 additions
-36 deletions
  @@ -1,22 +1,27 @@
1 1 # Changelog
2 2
3 + ## 0.1.4 - 2022-09-27
4 +
5 + - fix incorrect link for some types
6 + - Update packages
7 +
3 8 ## 0.1.3 - 2021-09-23
4 9
5 10 ### Fixed
6 11
7 - * Add missing type and description for mutations and queries
12 + - Add missing type and description for mutations and queries
8 13
9 14 ## 0.1.2 - 2021-09-17
10 15
11 16 ### Fixed
12 17
13 - * Support for Unions properly
14 - * Fix breakage when description is nil
18 + - Support for Unions properly
19 + - Fix breakage when description is nil
15 20 ## 0.1.1 - 2021-09-17
16 21
17 22 ### Fixed
18 23
19 - * Fix wrong link in multi page for scalar/objects
24 + - Fix wrong link in multi page for scalar/objects
20 25 ## 0.1 - 2021-09-17
21 26
22 27 _Initial release_
\ No newline at end of file
  @@ -10,7 +10,7 @@ by adding `graphql_markdown` to your list of dependencies in `mix.exs`:
10 10 ```elixir
11 11 def deps do
12 12 [
13 - {:graphql_markdown, "~> 0.1.2"}
13 + {:graphql_markdown, "~> 0.1.4"}
14 14 ]
15 15 end
16 16 ```
  @@ -82,4 +82,4 @@ Emmanuel Pinault (@epinault)
82 82 ## License
83 83
84 84 <NAME> is released under the MIT License. See the LICENSE file for further
85 - details.
\ No newline at end of file
85 + details.
  @@ -23,4 +23,4 @@
23 23 {<<"optional">>,false},
24 24 {<<"repository">>,<<"hexpm">>},
25 25 {<<"requirement">>,<<"~> 1.2">>}]]}.
26 - {<<"version">>,<<"0.1.3">>}.
26 + {<<"version">>,<<"0.1.4">>}.
  @@ -50,7 +50,7 @@ defmodule GraphqlMarkdown.MultiPage do
50 50 type_details =
51 51 field["type"]
52 52 |> Schema.field_type()
53 - |> MarkdownHelpers.link(reference_for_kind(field))
53 + |> MarkdownHelpers.link(String.downcase(reference_for_kind(field)))
54 54
55 55 render(type, "Type: #{type_details}")
56 56 render_newline(type)
  @@ -40,10 +40,10 @@ defmodule GraphqlMarkdown.Schema do
40 40 def field_kind(type) do
41 41 case type["kind"] do
42 42 "NON_NULL" ->
43 - field_type(type["ofType"])
43 + field_kind(type["ofType"])
44 44
45 45 "LIST" ->
46 - field_type(type["ofType"])
46 + field_kind(type["ofType"])
47 47
48 48 _ ->
49 49 type["kind"]
Loading more files…