Commit Graph

410 Commits

Author SHA1 Message Date
Dietmar Maurer dd193a61d0 section_config: improve parser 2018-11-26 18:01:24 +01:00
Dietmar Maurer 07d3fa7289 add some inline documentation 2018-11-24 17:52:43 +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 3e1497fb75 remove description from ApiMethod
We use the description from parameters ObjectSchema instead.
2018-11-23 17:02:50 +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 e471d69946 section_config.rs: add some test code 2018-11-19 08:07:22 +01:00
Dietmar Maurer 222454221c add section_config.rs 2018-11-19 06:47:39 +01:00
Dietmar Maurer 948c74f4ca move future test code into extra file 2018-11-19 06:41:50 +01:00
Dietmar Maurer 0f52af5b23 implement simply test future for storage operations 2018-11-18 15:01:19 +01:00
Dietmar Maurer be45ccd203 fix getopts when called without any argument 2018-11-18 14:57:18 +01:00
Dietmar Maurer a19f223dea impl argument parameters 2018-11-18 10:09:13 +01:00
Dietmar Maurer c78bcf07ad getopts: more tests 2018-11-18 09:34:43 +01:00
Dietmar Maurer 62c40162ee improve getopt parser 2018-11-18 08:55:21 +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 5d9f0eae6b another testcase for boolean argument parser 2018-11-17 11:29:42 +01:00
Dietmar Maurer 2770fbf3c3 getopt parser fixes and cleanups 2018-11-17 11:28:26 +01:00
Dietmar Maurer 7556cab45e getopts: allow "-option" and "--option" 2018-11-17 10:02:35 +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 845901f41d implement getopt parser - first try 2018-11-16 13:14:11 +01:00
Dietmar Maurer c548fa250a router: no need to use Fn (fn also works for static closures) 2018-11-16 11:12:00 +01:00
Dietmar Maurer 5206d1d951 fix typo 2018-11-16 09:16:37 +01:00
Dietmar Maurer e7ea17deb0 handle uri parameters correctly 2018-11-16 09:15:33 +01:00
Dietmar Maurer 484eb9ac19 Router: allow to set match parameter name 2018-11-16 08:29:23 +01:00
Dietmar Maurer 2ab1f7119c Router: implement missing builder methods 2018-11-16 08:24:10 +01:00
Dietmar Maurer fc937099b3 remove stale macro 2018-11-16 07:35:19 +01:00
Dietmar Maurer fe476ce884 allow closure handlers 2018-11-15 17:47:59 +01:00
Dietmar Maurer cbbeff1a6d add missing file 2018-11-15 17:07:55 +01:00
Dietmar Maurer f17db0abfd cleanup module names 2018-11-15 17:07:10 +01:00
Dietmar Maurer c0262d7480 rename Jss to Schema 2018-11-15 16:56:28 +01:00
Dietmar Maurer 426a48b04f fix parameter macro for empty object 2018-11-15 16:48:36 +01:00
Dietmar Maurer 8a7005321b improve router 2018-11-15 13:28:15 +01:00
Dietmar Maurer e63e99d646 rename MethodInfo to Router 2018-11-15 11:46:13 +01:00
Dietmar Maurer 10be1d290a avoid macros 2018-11-15 10:57:52 +01:00
Dietmar Maurer 4dcf43d266 rename ApiError into HttpError 2018-11-15 10:42:01 +01:00
Dietmar Maurer 279ecfdfb4 remove unneeded lifetime annotations 2018-11-15 10:25:59 +01:00
Dietmar Maurer f0b10921b8 reorder content 2018-11-15 10:18:01 +01:00
Dietmar Maurer 16b48b81c5 move ApiConfig into extra file 2018-11-15 10:14:08 +01:00