Files
stacks-blockchain-api/docs/api/blocks/get-blocks.schema.json
Rafael Cárdenas 666b8a60fb chore: fix openapi schema validation errors, clean up type definitions (#1170)
* fix: openapi lint validator

* fix: balances schema

* fix: add title to all entities

* fix: some additionalProperties and duplicate names

* fix: remove additional properties for rosetta

* fix: rosetta tests

* style: remove empty description
2022-05-13 15:25:11 -05:00

30 lines
708 B
JSON

{
"description": "GET request that returns blocks",
"additionalProperties": false,
"title": "BlockListResponse",
"type": "object",
"required": ["results", "limit", "offset", "total"],
"properties": {
"limit": {
"type": "integer",
"maximum": 30,
"description": "The number of blocks to return"
},
"offset": {
"type": "integer",
"description": "The number to blocks to skip (starting at `0`)",
"default": 0
},
"total": {
"type": "integer",
"description": "The number of blocks available"
},
"results": {
"type": "array",
"items": {
"$ref": "../../entities/blocks/block.schema.json"
}
}
}
}