Commit ca562ab
committed
Changes: inlines anonymous schema nodes in elm code
- Changes: inlines anonymous schema nodes in elm code to reduce the scenarios
where we have to auto-generate names like 'zero' and 'one'.
- Cleans: major refactoring of the code structure such that the EEx templates
correspond to the different output types, e.g. product types, sum decoders,
list fuzzers, etc., rather than the different input types, e.g. array, object,
oneOf, etc.
- Cleans: related to the above point, all the different output elm
types/decoders/encoders/fuzzers now have proper type specifications in the
elm_{types,decoders,encoders,fuzzers}.ex util modules.1 parent 40f19de commit ca562ab
File tree
77 files changed
+1894
-1949
lines changed- examples/example-output-elm-code/src/Data
- lib
- printer
- utils
- priv/templates
- all_of
- any_of
- array
- decoders
- encoders
- enum
- fuzzers
- object
- one_of
- tuple
- types
- union
- utils
- test/printer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
77 files changed
+1894
-1949
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| |||
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
128 | | - | |
129 | | - | |
| 125 | + | |
130 | 126 | | |
131 | | - | |
132 | | - | |
| 127 | + | |
133 | 128 | | |
134 | 129 | | |
135 | 130 | | |
| |||
311 | 306 | | |
312 | 307 | | |
313 | 308 | | |
314 | | - | |
315 | | - | |
| 309 | + | |
316 | 310 | | |
317 | 311 | | |
318 | 312 | | |
| |||
0 commit comments