Dietmar Maurer
379ea0edb6
Revert "/api/schema.rs: implement Schema::Option"
...
This reverts commit 0a35462c1e
.
I am not sure this add much value, and the old approach needs
less memory. If we really need single optional values, we can still
implement such Option while keeping the hash based approach...
2019-01-19 12:53:32 +01:00
Dietmar Maurer
80f069656d
Revert "api/schema.rs: avoid Option(Option( nesting"
...
This reverts commit ffdac1af01
.
2019-01-19 12:52:51 +01:00
Dietmar Maurer
ca3d861513
remove unused type PropertyMap
2019-01-18 17:54:06 +01:00
Dietmar Maurer
ffdac1af01
api/schema.rs: avoid Option(Option( nesting
2019-01-18 17:49:19 +01:00
Dietmar Maurer
0a35462c1e
/api/schema.rs: implement Schema::Option
2019-01-18 17:40:37 +01:00
Dietmar Maurer
d42398666c
improve error message
2018-11-30 12:07:27 +01:00
Dietmar Maurer
bfb1d69abc
fix compiler warnings, add storage/config.rs
2018-11-30 11:15:26 +01:00
Dietmar Maurer
aeb4c8217b
schema: implement verify_json
2018-11-29 13:06:43 +01:00
Dietmar Maurer
bdb631da88
section_config: improve parser
2018-11-27 11:55:21 +01:00
Dietmar Maurer
6656ba9d32
StringSchema: add method to check string length
2018-11-24 12:37:05 +01:00
Dietmar Maurer
ab672c124e
ArraySchema: add method to check array length
2018-11-24 12:33:44 +01:00
Dietmar Maurer
ed04ce8093
parse_property_string: allow arrays
...
So that we can build simple lists like "1,2,3,4"
2018-11-24 12:21:56 +01:00
Dietmar Maurer
84669dc18d
rename test case
2018-11-24 11:21:01 +01:00
Dietmar Maurer
b436389d47
parse_property_string: first try
2018-11-24 11:20:17 +01:00
Dietmar Maurer
a23dd9bb42
add test for VerifyFn
2018-11-24 08:30:23 +01:00
Dietmar Maurer
715f22fb4a
remove outdated test code
2018-11-24 08:15:08 +01:00
Dietmar Maurer
757d9b4769
ArraySchema: Add min_length and max_length
2018-11-24 08:12:23 +01:00
Dietmar Maurer
768e01091a
implement Into Arc<Schema>
2018-11-23 13:18:41 +01:00
Dietmar Maurer
8a41cfdd55
implement ArraySchema
2018-11-23 12:05:55 +01:00
Dietmar Maurer
7edeec7b06
remove parameter macro, implement ObjectSchema builder
...
And store "optional" attribute inside properties hash.
2018-11-23 11:34:15 +01:00
Dietmar Maurer
82df76fff0
start using builder pattern instead of macros
2018-11-23 09:55:38 +01:00
Dietmar Maurer
dc454ef096
implement schema registry
2018-11-22 11:23:49 +01:00
Dietmar Maurer
00c908df85
use Arc pointer to properties
2018-11-20 17:20:50 +01:00
Dietmar Maurer
a653882dd9
use ObjectSchema for parameters
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2018-11-18 08:46:26 +01:00
Dietmar Maurer
2770fbf3c3
getopt parser fixes and cleanups
2018-11-17 11:28:26 +01:00
Dietmar Maurer
0c9ce2bbf0
getopts: improve error handling
2018-11-17 09:57:26 +01:00
Dietmar Maurer
ffff48fcfe
cleanup variable names
2018-11-16 16:47:23 +01:00
Dietmar Maurer
5206d1d951
fix typo
2018-11-16 09:16:37 +01:00
Dietmar Maurer
f17db0abfd
cleanup module names
2018-11-15 17:07:10 +01:00