| 1 | package Sah::Schema::sah::clause_set; | ||
| 2 | |||
| 3 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 4 | 1 | our $DATE = '2021-07-23'; # DATE | |
| 5 | 1 | our $DIST = 'Sah-Schemas-Sah'; # DIST | |
| 6 | 1 | our $VERSION = '0.9.50.0'; # VERSION | |
| 7 | |||
| 8 | # incomplete | ||
| 9 | |||
| 10 | 1 | our $schema = [defhash => { | |
| 11 | # tmp | ||
| 12 | _prop => { | ||
| 13 | # from defhash | ||
| 14 | v => {}, | ||
| 15 | defhash_v => {}, | ||
| 16 | name => {}, | ||
| 17 | summary => {}, | ||
| 18 | description => {}, | ||
| 19 | tags => {}, | ||
| 20 | default_lang => {}, | ||
| 21 | x => {}, | ||
| 22 | |||
| 23 | # common to all types | ||
| 24 | examples => {}, | ||
| 25 | invalid_examples => {}, | ||
| 26 | |||
| 27 | # incomplete | ||
| 28 | clause => { | ||
| 29 | }, | ||
| 30 | clset => { | ||
| 31 | }, | ||
| 32 | }, | ||
| 33 | |||
| 34 | keys => { | ||
| 35 | examples => [any => { | ||
| 36 | of => [ | ||
| 37 | ['sah::nondefhash_example', {}], | ||
| 38 | ['sah::defhash_example', {}], | ||
| 39 | ], | ||
| 40 | }, | ||
| 41 | ], | ||
| 42 | }, | ||
| 43 | 'keys.restrict' => 0, | ||
| 44 | |||
| 45 | examples => [ | ||
| 46 | {value=>{}, valid=>1}, | ||
| 47 | {value=>{min=>1, max=>1}, valid=>1}, | ||
| 48 | #{value=>{"a b"=>1}, valid=>0}, | ||
| 49 | ], | ||
| 50 | }]; | ||
| 51 | |||
| 52 | 1 | 1; | |
| 53 | # ABSTRACT: Sah clause set | ||
| 54 | |||
| 55 | __END__ |