Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot generate rust code for starknet_write_api.json #271

Open
tdelabro opened this issue Jan 22, 2025 · 0 comments
Open

cannot generate rust code for starknet_write_api.json #271

tdelabro opened this issue Jan 22, 2025 · 0 comments

Comments

@tdelabro
Copy link

On master
I run

 open-rpc-generator generate -t client -l rust -d ./api/starknet_write_api.json -o starknet_write_api

and get

(node:50385) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Invalid OpenRPC document. Please revise the validation errors below:
OpenRPCDocumentDereferencingError {
  name: 'OpenRPCDocumentDereferencingError',
  message: 'The json schema provided cannot be dereferenced. Received Error: \n' +
    ' Unable to parse reference inside of JSONSchema\n' +
    '\n' +
    'error message: InvalidFileSystemPathError\n' +
    'The path was not resolvable: ./starknet_api_openrpc.json#/components/schemas/SIGNATURE\n' +
    'schema in question: {"$ref":"./starknet_api_openrpc.json#/components/schemas/SIGNATURE","components":{"schemas":{"NUM_AS_HEX":{"title":"An integer number in hex format (0x...)","type":"string","pattern":"^0x[a-fA-F0-9]+$"},"SIGNATURE":"[Circular]","FELT":{"$ref":"./starknet_api_openrpc.json#/components/schemas/FELT"},"TXN_HASH":{"$ref":"./starknet_api_openrpc.json#/components/schemas/TXN_HASH"},"BROADCASTED_INVOKE_TXN":{"$ref":"./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_INVOKE_TXN"},"BROADCASTED_DECLARE_TXN":{"$ref":"./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DECLARE_TXN"},"BROADCASTED_DEPLOY_ACCOUNT_TXN":{"$ref":"./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN"},"FUNCTION_CALL":{"$ref":"./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL"}}}}'
}
There was error at generator runtime:
OpenRPCDocumentDereferencingError {
  name: 'OpenRPCDocumentDereferencingError',
  message: 'The json schema provided cannot be dereferenced. Received Error: \n' +
    ' Unable to parse reference inside of JSONSchema\n' +
    '\n' +
    'error message: InvalidFileSystemPathError\n' +
    'The path was not resolvable: ./starknet_api_openrpc.json#/components/schemas/SIGNATURE\n' +
    'schema in question: {"$ref":"./starknet_api_openrpc.json#/components/schemas/SIGNATURE","components":{"schemas":{"NUM_AS_HEX":{"title":"An integer number in hex format (0x...)","type":"string","pattern":"^0x[a-fA-F0-9]+$"},"SIGNATURE":"[Circular]","FELT":{"$ref":"./starknet_api_openrpc.json#/components/schemas/FELT"},"TXN_HASH":{"$ref":"./starknet_api_openrpc.json#/components/schemas/TXN_HASH"},"BROADCASTED_INVOKE_TXN":{"$ref":"./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_INVOKE_TXN"},"BROADCASTED_DECLARE_TXN":{"$ref":"./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DECLARE_TXN"},"BROADCASTED_DEPLOY_ACCOUNT_TXN":{"$ref":"./api/starknet_api_openrpc.json#/components/schemas/BROADCASTED_DEPLOY_ACCOUNT_TXN"},"FUNCTION_CALL":{"$ref":"./starknet_api_openrpc.json#/components/schemas/FUNCTION_CALL"}}}}'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant