CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 17:34:05 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"7a59cb47c3c64cee8fb01ce655145448"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=sn5ksdYB0xMgp5Ivckn%2BA%2BrduT2jF98TDZ%2FF1VTwKvANko%2F%2B9hVaG94qgmnyVWjTUrUAXFo8Kt90NdYrk9HqERXHMaZoo4aat7zaggYe7Ug20pWe8qwUQiPhpupFHO5fXmH15uno23RFYkxfsplnCd4Vrjr4%2F8k2Qq6PNo7QHeBcIqFnFDS%2BNBgXqMCvX7inRZKFv2f3CjbV5%2BwMDtWwzJsV3Ebb3O6KdK627kfWT3L1uSNZEqR1TNWqXfOAvfwAu6EV6e0anKuYotxBjig34w%3D%3D--jh6M%2FfGqu9Us%2FVQV--XFlojO0KCyqmDklgS1CKEQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1510479351.1753637645; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:34:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:34:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 93DC:15E61D:FB0972:1460327:6886630D
Tags · dragonwasrobot/json-schema-to-elm · GitHub
Toggle v2.8.0's commit message
Toggle v2.5.0's commit message
Toggle v2.3.0's commit message
Toggle v2.2.0's commit message
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12
Tags: dragonwasrobot/json-schema-to-elm
Tags
v2.8.0
Updates json_schema dependency to 0.2.0 Given that `json_schema` has breaking changes in the way it handles references, such that both local and global references are now handled with the `URI` type, this has required minor changes in all of the printer modules, and as a result I've decided to bump the minor version of json-schema-to-elm given the scope of affected files. However, this change should make things easier going forward when implementing new feature.
v2.5.0
Printers review (#66) 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.
v2.3.0
Error reporting (#48) Adds Elm-style error reporting to js2e - Streamlines error handling across all files using `ParserResult` and `PrinterResult` types, which encapsulate the result of parsing/printing a schema and any warnings/errors encountered along the way, - adds parser and printer error util modules for pretty printing errors, - moves the logic from Predicates.ex into their respective parser files, - moves schema version logic into its own module, - splits most of parser.ex into root parser and parser util, - adds missing 'properties', 'anyOf', 'items', etc. to `TypePath`s, - updates README, and - Closes #23
v2.2.0
Qualified references (#43) Closes #39 by adding fully qualified names in the generated Elm code when referencing definitions from other modules. * Adds 'module' to schema definitions, * passes the schema definition context - instead of the type dictionary - to each printer function, * uses fully qualified names when referencing types, encoders and decoders from other modules in the generated Elm code, * removes the explicit import of types, decoders and encoders from other modules in the generated Elm code. Now just import the module and nothing else, * adds support for the 'title' property in the schema root object, * removes some code redundancy, and * updates readme with new elm output.
PreviousNext
You can’t perform that action at this time.