bee icon indicating copy to clipboard operation
bee copied to clipboard

Wrong OpenAPI definition for ChainState object

Open tmm360 opened this issue 3 years ago • 0 comments

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"}

tmm360 avatar Jul 22 '22 15:07 tmm360