diff --git a/src/eth/execute.yaml b/src/eth/execute.yaml index 174fd021..ed4b4a3a 100644 --- a/src/eth/execute.yaml +++ b/src/eth/execute.yaml @@ -44,6 +44,7 @@ schema: title: Access list result type: object + additionalProperties: false properties: accessList: title: "accessList" diff --git a/src/eth/fee_market.yaml b/src/eth/fee_market.yaml index 5ec7f73a..f45a4396 100644 --- a/src/eth/fee_market.yaml +++ b/src/eth/fee_market.yaml @@ -49,6 +49,7 @@ - oldestBlock - baseFeePerGas - gasUsedRatio + additionalProperties: false properties: oldestBlock: title: oldestBlock diff --git a/src/schemas/block.yaml b/src/schemas/block.yaml index 6773e770..9def2bdf 100644 --- a/src/schemas/block.yaml +++ b/src/schemas/block.yaml @@ -2,6 +2,7 @@ Block: title: Block object type: object required: + - hash - parentHash - sha3Uncles - miner @@ -19,7 +20,11 @@ Block: - size - transactions - uncles + additionalProperties: false properties: + hash: + title: Hash + $ref: '#/components/schemas/hash32' parentHash: title: Parent block hash $ref: '#/components/schemas/hash32' @@ -86,7 +91,7 @@ Block: - title: Full transactions type: array items: - $ref: '#/components/schemas/TransactionSigned' + $ref: '#/components/schemas/TransactionInfo' withdrawals: title: Withdrawals type: array @@ -130,6 +135,7 @@ BadBlock: - block - hash - rlp + additionalProperties: false properties: block: title: Block diff --git a/src/schemas/client.yaml b/src/schemas/client.yaml index faafb48c..e1163d03 100644 --- a/src/schemas/client.yaml +++ b/src/schemas/client.yaml @@ -3,6 +3,7 @@ SyncingStatus: oneOf: - title: Syncing progress type: object + additionalProperties: false properties: startingBlock: title: Starting block diff --git a/src/schemas/filter.yaml b/src/schemas/filter.yaml index 51ebf0d7..2d454204 100644 --- a/src/schemas/filter.yaml +++ b/src/schemas/filter.yaml @@ -16,6 +16,7 @@ FilterResults: Filter: title: filter type: object + additionalProperties: false properties: fromBlock: title: from block diff --git a/src/schemas/receipt.yaml b/src/schemas/receipt.yaml index e57b4f12..3d500a19 100644 --- a/src/schemas/receipt.yaml +++ b/src/schemas/receipt.yaml @@ -3,6 +3,7 @@ Log: type: object required: - transactionHash + additionalProperties: false properties: removed: title: removed @@ -47,7 +48,11 @@ ReceiptInfo: - transactionHash - transactionIndex - effectiveGasPrice + additionalProperties: false properties: + type: + title: type + $ref: '#/components/schemas/byte' transactionHash: title: transaction hash $ref: '#/components/schemas/hash32' diff --git a/src/schemas/state.yaml b/src/schemas/state.yaml index 80e97206..c2259ce7 100644 --- a/src/schemas/state.yaml +++ b/src/schemas/state.yaml @@ -9,6 +9,7 @@ AccountProof: - nonce - storageHash - storageProof + additionalProperties: false properties: address: title: address @@ -42,6 +43,7 @@ StorageProof: - key - value - proof + additionalProperties: false properties: key: title: key diff --git a/src/schemas/transaction.yaml b/src/schemas/transaction.yaml index bf8166af..6df72162 100644 --- a/src/schemas/transaction.yaml +++ b/src/schemas/transaction.yaml @@ -1,6 +1,7 @@ AccessListEntry: title: Access list entry type: object + additionalProperties: false properties: address: $ref: '#/components/schemas/address' @@ -224,6 +225,7 @@ TransactionInfo: - from - hash - transactionIndex + unevaluatedProperties: false properties: blockHash: title: block hash @@ -244,6 +246,7 @@ TransactionInfo: GenericTransaction: type: object title: Transaction object generic to all types + additionalProperties: false properties: type: title: type diff --git a/src/schemas/withdrawal.yaml b/src/schemas/withdrawal.yaml index b1ff44c8..2e350a97 100644 --- a/src/schemas/withdrawal.yaml +++ b/src/schemas/withdrawal.yaml @@ -6,6 +6,7 @@ Withdrawal: - validatorIndex - address - amount + additionalProperties: false properties: index: title: index of withdrawal