Closed Altair-Bueno closed 2 weeks ago
Probably the relevant piece of code is this one:
It should allow the use of macros
This is fixed in schemars 1.0.0-alpha.12 🙂
The output from the example given in this issue (when prettified) is now:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Foo",
"type": "object",
"properties": {
"f": {
"description": "aabbb",
"type": "integer",
"format": "uint",
"minimum": 0
}
},
"required": [
"f"
]
}
Expected behavior
Expected macros like
include_str
,concat
, etc to work without issues.Current behavior
Usage of said macros results on either compilation errors or doc attributes being ignored.
Minimal example