Skip to content
forked from Nebo15/jvalid

Json Scheme validation helper, that allows to store schemes in a separate files.

License

Notifications You must be signed in to change notification settings

ehealth-ua/jvalid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JValid

Deps Status Hex.pm Downloads Latest Version License Build Status Coverage Status

We use JSON Schema validation inside our projects, but storing large schema in Elixir files looks ugly, and you can't really move them to a separate file since it will be erased during compile and release.

This module solves this issue by in-lining schemas in compilation time via Elixir macros.

Installation

It's available in Hex, the package can be installed as:

  1. Add jvalid to your list of dependencies in mix.exs:

    def deps do
      [{:jvalid, "~> 0.5.2"}]
    end
  2. Ensure jvalid is started before your application:

    def application do
      [applications: [:jvalid]]
    end

About

Json Scheme validation helper, that allows to store schemes in a separate files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 99.3%
  • Shell 0.7%