You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR fixes decoders/encoders for `allOf` and `anyOf` types, sanitises identifier names, various bug fixes, refactorings and dialyzer fixes.
* Fixes and refactors the `allOf` and `anyOf` printers, such that they produce correct Elm code for decoding and encoding `all_of` and `any_of` JSON schema nodes.
* Sanitises / Elmifies JSON schema identifiers, such that the Elm code output is valid Elm
- Moves indentation- and naming-specific logic from `printer/util.ex` into a new
`printer/utils` folder,
- adjusts all printers to now use the `Naming.normalize_identifier()` function
before sending identifier names to Elm code templates, and
- adds tests for the 'sanitise identifier' feature.
* Splits the `JS2E.Printer.Util` module into a whole `printer/utils`
folder in order to increase cohesion, i.e. have one util module per relevant
area of printing.
* Fixes all dialyzer errors except for allOf/anyOf/oneOf printers
* Improves documentation
- Updates 'allOf' and 'anyOf' type descriptions to reflect new Elm
decoders/encoders,
- updates `README.md` to include a section on `js2e` error reporting, and
- creates a `CONTRIBUTING.md` file, detailing what potential contributors should
know before filing issues/PRs.
0 commit comments