mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-23 18:53:13 +00:00
chore: rename get_schema endpoint to more common getSchema
This commit is contained in:
parent
d4494c1f21
commit
2acc388ae9
@ -10,7 +10,7 @@ compile_error!("At least one of `server` or `client` features must be enabled.")
|
|||||||
#[cfg_attr(all(feature = "client", not(feature = "server")), rpc(client))]
|
#[cfg_attr(all(feature = "client", not(feature = "server")), rpc(client))]
|
||||||
#[cfg_attr(all(feature = "server", feature = "client"), rpc(server, client))]
|
#[cfg_attr(all(feature = "server", feature = "client"), rpc(server, client))]
|
||||||
pub trait Rpc {
|
pub trait Rpc {
|
||||||
#[method(name = "get_schema")]
|
#[method(name = "getSchema")]
|
||||||
fn get_schema(&self) -> Result<serde_json::Value, ErrorObjectOwned> {
|
fn get_schema(&self) -> Result<serde_json::Value, ErrorObjectOwned> {
|
||||||
// TODO: Canonical solution would be to provide `describe` method returning OpenRPC spec,
|
// TODO: Canonical solution would be to provide `describe` method returning OpenRPC spec,
|
||||||
// But for now it's painful to implement, although can be done if really needed.
|
// But for now it's painful to implement, although can be done if really needed.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user