bee
bee copied to clipboard
Wrong OpenAPI definition for ChainState object
Location
https://github.com/ethersphere/bee/blob/bbf130119575bed15782d6e5d179d94cc21dcdab/openapi/SwarmCommon.yaml#L52
Description
Chainstate is defined as four fields represented as integers, instead API returns a JSON with three fields, and two of these are strings (probably BigInt). Example:
{"block":23290915,"totalAmount":"26805948","currentPrice":"4"}