Open aatifsyed opened 4 months ago
There may be other bugs in the definitions - forest has put effort into emitting correct schemas which may be a useful reference
Great! Thanks for this one.
What about the use of TipSetKey
, they seem to be "type": ["object"]
but could be defined as an array of CIDs, does Forest do this differently?
Yep, forest represents them correctly, also respecting the quirk that empty arrays are serialized as null
by Lotus
{
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/Cid"
},
"components": {
"schemas": {
"Cid": {
"type": "object",
"required": [
"/"
],
"properties": {
"/": {
"type": "string"
}
}
}
}
}
}
Checklist
Latest release
, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Repro Steps
No response
Describe the Bug
https://github.com/filecoin-project/lotus/blob/36d96342c36186ab15417b53511dce94b66ae089/build/openrpc/full.json#L71-L91
The schema for, e.g
cid
is wrong - it's notit's
(as expected and emitted by lotus)
Logging Information