7 extern crate json_schema
;
11 static PARAMETERS1
: StaticPropertyMap
= phf_map
! {
13 description
=> "Test for boolean options."
15 "text1" => ApiString
!{
16 description
=> "A simple text string.",
17 min_length
=> Some(10),
18 max_length
=> Some(30)
21 description
=> "A counter for everything.",
26 description
=> "Test Array of simple integers.",
29 "myarray2" => Jss
::Array(JssArray
{
30 description
: "Test Array of simple integers.",
31 optional
: Some(false),
32 items
: &Object
!{description => "Empty Object."}
,
34 "myobject" => Object
!{
35 description
=> "TEST Object.",
36 properties
=> &phf_map
!{
37 "vmid" => Jss
::Reference { reference: &PVE_VMID}
,
39 description
=> "Totally useless thing.",
40 optional
=> Some(false)
44 "emptyobject" => Object
!{description => "Empty Object."}
,
49 println
!("Fast Static Type Definitions 1");
51 for (k
, v
) in PARAMETERS1
.entries() {
52 println
!("Parameter: {} Value: {:?}", k
, v
);