{
"_README": "Per-field type overrides applied by openapi/preprocess.py before openapi-generator runs. Each entry retypes one generated model field to the algonaut domain type the hand-maintained crate uses, since the spec does not carry enough information to derive it. 'schema' is the OpenAPI component schema name; 'field' is the spec property name. Models now generate into algonaut_model::{algod,indexer} (ADR relocate-generated-models), so 'import' lines are crate-relative to algonaut_model (e.g. `crate::transaction::ApiSignedTransaction`). See docs/adr/openapi-client-regeneration.md and docs/adr/relocate-generated-models.md.",
"overrides": [
{
"crate": "algod",
"schema": "AssetParams",
"field": "metadata-hash",
"type": "HashDigest",
"import": "use algonaut_crypto::{HashDigest, deserialize_opt_hash};",
"serde": "deserialize_with = \"deserialize_opt_hash\", default"
},
{
"crate": "algod",
"schema": "TealValue",
"field": "bytes",
"type": "Vec<u8>",
"import": "use algonaut_encoding::deserialize_bytes;",
"serde": "deserialize_with = \"deserialize_bytes\""
},
{
"crate": "algod",
"schema": "SimulateRequestTransactionGroup",
"field": "txns",
"type": "Vec<ApiSignedTransaction>",
"import": "use crate::transaction::ApiSignedTransaction;"
},
{
"crate": "indexer",
"schema": "AssetParams",
"field": "metadata-hash",
"type": "HashDigest",
"import": "use algonaut_crypto::{HashDigest, deserialize_opt_hash};",
"serde": "deserialize_with = \"deserialize_opt_hash\""
},
{
"crate": "indexer",
"schema": "Block",
"field": "genesis-hash",
"type": "HashDigest",
"import": "use algonaut_crypto::{HashDigest, deserialize_hash};",
"serde": "deserialize_with = \"deserialize_hash\""
},
{
"crate": "indexer",
"schema": "Block",
"field": "previous-block-hash",
"type": "HashDigest",
"import": "use algonaut_crypto::{HashDigest, deserialize_hash};",
"serde": "deserialize_with = \"deserialize_hash\""
},
{
"crate": "indexer",
"schema": "Transaction",
"field": "genesis-hash",
"type": "HashDigest",
"import": "use algonaut_crypto::{HashDigest, deserialize_opt_hash};",
"serde": "deserialize_with = \"deserialize_opt_hash\""
}
]
}