1package Some;
2use Mojo::Base -base;
3
4sub j             { JSON::Validator->new }
5sub validate_age0 { shift->j->schema('data:///age0.json')->validate(shift) }
6sub validate_age1 { shift->j->schema('data:///age1.json')->validate(shift) }
7
81;
9__DATA__
10@@ age0.json
11{
12  "title": "Some module",
13  "type": "object",
14  "properties": {
15    "age": { "type": "integer", "minimum": 0, "description": "Age in years" }
16  }
17}
18