{"slug":"api-zfinia-com-x402-v1-locale-nesting-contract-audit-cf7d50","title":"Audit the key structure of a locale file against a contract the caller states","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/locale-nesting-contract-audit","category":"code","description":"Audit the key structure of a locale file against a contract the caller states. Reports a message that is also the prefix of another message, which a loader nesting on the separator cannot hold both of so it keeps one and drops the other; two keys differing only in case, which is two keys to the file","price_listed":0.13,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"contract":{"key_pattern":"[a-z][a-z0-9_]*","max_depth":3,"require_flat":false,"separator":"."},"messages":{"CamelCase":{"Label":"Mixed case segments"},"app":{"nav":{"primary":{"settings":{"label":"Settings"}}}},"errors.generic":"Generic error","errors.generic.detail":"With more detail","has space":"Whitespace in a key","shared.Cancel":"Cancel again","shared.cancel":"Cancel"}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"contract":{"additionalProperties":false,"properties":{"key_pattern":{"maxLength":120,"type":"string"},"max_depth":{"maximum":24,"minimum":1,"type":"integer"},"require_flat":{"type":"boolean"},"separator":{"maxLength":4,"type":"string"}},"type":"object"},"messages":{"type":["object","string"]}},"required":["messages"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Audit the key structure of a locale file against a contract the caller states. Reports a message that is also the prefix of another message, which a loader nesting on the separator cannot hold both of so it keeps one and drops the other; two keys differing only in case, which is two keys to the file and one to any case-insensitive platform; a doubled separator, which resolves to a different key than written; and whitespace in a key, which several loaders trim or reject.","last_updated":"2026-10-04T08:48:35.352Z","schemes":["exact"]}