Skip to content

Commit

Permalink
fix: pending block & pending block w hash schema fix
Browse files Browse the repository at this point in the history
add "additionalProperties": false to resolve the conflict
between the pending block schema and the block schema.
this conflict appears in the apis: starknet_getBlockWithTxHashes and starknet_getBlockWithTxs
where we can get either one of the ocjects with a "oneOf" and in fact the block w tx object
is valid for both the block and the pending block schema.
  • Loading branch information
nagmo-starkware committed Aug 20, 2023
1 parent 0e859ff commit d724019
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,8 @@
}
}
}
]
],
"additionalProperties": false
},
"PENDING_BLOCK_WITH_TXS": {
"title": "Pending block with transactions",
Expand Down Expand Up @@ -1493,7 +1494,8 @@
}
}
}
]
],
"additionalProperties": false
},
"DEPLOYED_CONTRACT_ITEM": {
"title": "Deployed contract item",
Expand Down

0 comments on commit d724019

Please sign in to comment.