File: ReservedKeyword.pm

package info (click to toggle)
libjson-schema-modern-perl 0.619-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,372 kB
  • sloc: perl: 4,014; makefile: 9
file content (25 lines) | stat: -rw-r--r-- 733 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# vim: set ft=perl ts=8 sts=2 sw=2 tw=100 et :
package MyVocabulary::ReservedKeyword;
use Moo;
use strictures 2;
use stable 0.031 'postderef';
use experimental 'signatures';
use if "$]" >= 5.022, experimental => 're_strict';
no if "$]" >= 5.031009, feature => 'indirect';
no if "$]" >= 5.033001, feature => 'multidimensional';
no if "$]" >= 5.033006, feature => 'bareword_filehandles';
no if "$]" >= 5.041009, feature => 'smartmatch';
no feature 'switch';
with 'JSON::Schema::Modern::Vocabulary';

sub vocabulary {
  'https://vocabulary/reserved/keyword' => 'draft2020-12',
}

sub keywords { '$furble' }

sub _traverse_keyword_furble ($self, $schema, $state) { 1 }

sub _eval_keyword_furble ($self, $data, $schema, $state) { 1 }

1;