proxmox/proxmox-api-macro/tests
Wolfgang Bumiller d3ec63f26d api-macro: allow referencing external schemas in properties
Reference a predefined BACKUP_ARCHIVE_NAME StringSchema like
this:
    #[api(
        input: {
            properties: {
                archive: {
                    optional: true,
                    schema: BACKUP_ARCHIVE_NAME,
                },
            }
        }
    )]
    fn get_archive(archive: String) -> Result<(), Error> {
        ...
    }

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-12-03 11:11:46 +01:00
..
api1.rs api-macro: test optional value invocation 2019-12-02 11:12:36 +01:00
api2.rs api-macro: allow inferring some types automatically 2019-12-02 11:46:15 +01:00
ext-schema.rs api-macro: allow referencing external schemas in properties 2019-12-03 11:11:46 +01:00
types.rs api-macro: some more test code 2019-11-28 13:49:14 +01:00