Skip to content

Commit

Permalink
Merge pull request #247 from starkware-libs/fix_executables_api
Browse files Browse the repository at this point in the history
Fix starknet_executables api schema (#247)
  • Loading branch information
ArielElp authored Nov 11, 2024
2 parents 69637fd + f0a3fd1 commit 6b3387e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
43 changes: 22 additions & 21 deletions api/starknet_executables.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"$ref": "#/components/errors/COMPILATION_ERROR"
},
{
"$ref": "#/components/errors/CLASS_HASH_NOT_FOUND"
"$ref": "./api/starknet_api_openrpc.json#/components/errors/CLASS_HASH_NOT_FOUND"
}
]
}
Expand Down Expand Up @@ -128,21 +128,23 @@
]
},
"CASM_ENTRY_POINT": {
"allOf": [
{
"$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT"
},
{
"type": "object",
"properties": {
"builtins": {
"type": "array",
"items": "string"
}
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT"
},
"required": "builtins"
}
]
{
"type": "object",
"properties": {
"builtins": {
"type": "array",
"items": "string"
}
},
"required": "builtins"
}
]
}
},
"CellRef": {
"title": "CellRef",
Expand Down Expand Up @@ -1335,20 +1337,19 @@
]
},
"FELT": {
"$ref": "./starknet_api_openrpc.json#/components/schemas/FELT"
"$ref": "./api/starknet_api_openrpc.json#/components/schemas/FELT"
},
"NUM_AS_HEX": {
"$ref": "./starknet_api_openrpc.json#/components/schemas/NUM_AS_HEX"
"$ref": "./api/starknet_api_openrpc.json#/components/schemas/NUM_AS_HEX"
},
"DEPRECATED_CAIRO_ENTRY_POINT": {
"$ref": "./starknet_api_openrpc.json#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT"
"$ref": "./api/starknet_api_openrpc.json#/components/schemas/DEPRECATED_CAIRO_ENTRY_POINT"
}
},
"errors": {
"CLASS_HASH_NOT_FOUND": {
"$ref": "./api/starknet_api_openrpc.json#/components/errors/CLASS_HASH_NOT_FOUND"
},
"COMPILATION_ERROR": {
"code": 100,
"message": "Failed to compile the contract",
"data": {
"type": "object",
"description": "More data about the compilation failure",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/starkware-libs/starknet-specs.git"
},
"scripts": {
"validate_all": "node validate.js api/starknet_api_openrpc.json && node validate.js api/starknet_write_api.json && node validate.js api/starknet_trace_api_openrpc.json && node validate.js ./api/starknet_ws_api.json && node validate.js ./wallet-api/wallet_rpc.json"
"validate_all": "node validate.js api/starknet_api_openrpc.json && node validate.js api/starknet_write_api.json && node validate.js api/starknet_trace_api_openrpc.json && node validate.js ./api/starknet_ws_api.json && node ./api/starknet_executables.json && node validate.js ./wallet-api/wallet_rpc.json"
},
"author": "Lior Schejter",
"license": "MIT",
Expand Down

0 comments on commit 6b3387e

Please sign in to comment.