You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we'd want to generate a type more or less like this?
(Caption,Vec<Row>)
This is a bit like #203 and a subset of #254. In particular the constraints relevant for this proposed type are
maxItems = None
items is an array
items.len() == minItems
If that type seems reasonable I think it wouldn't be that hard to implement; the only trick is to "flatten" or "inline" the second item in tuple for Serialize and Deserialize (which @dtolnay describes here serde-rs/serde#1337 (comment)).
The schema is here: https://github.com/jgm/djot.js/blob/baa4d3e62bccaebe0680adea1b185adbd211fd8a/djot-schema.json , and is AFAIK automatically generated using typescript-json-schema.
The output of
cargo typify
isThe text was updated successfully, but these errors were encountered: