proxmox/proxmox-api-macro
Wolfgang Bumiller 273ce60242 api-macro: forbid description on incompatible schemas
References to external schemas (or types) already include
the description in the external schema and therefore are
illegal.

The implementation consists of multiple parts:

* Introduce a `Maybe` type which can be `Explicit`,
  `Derived` or `None`.
* Forbid `Explicit` descriptions on references.
* Instead of bailing out on such errors which causes all of
  the generated code to vanish and create heaps of
  additional nonsensical errors, add a way to *add* errors
  without bailing out immediately via the `error!()` macro.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-12-07 15:09:45 +01:00
..
debian build: track d/control in git 2020-11-30 15:13:01 +01:00
src api-macro: forbid description on incompatible schemas 2020-12-07 15:09:45 +01:00
tests formatting fixup 2020-11-16 14:21:45 +01:00
Cargo.toml bump proxmox-api-macro version to 0.2.3 2020-11-05 12:13:05 +01:00