Skip to content

Commit

Permalink
fix: revert Metadata flattening & fix response codes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmikhalevich committed May 10, 2024
1 parent 71cbd20 commit 8c8c75c
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions rollup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0

info:
title: Cartesi Rollup HTTP API
version: 0.8.0
version: 0.8.1
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
Expand Down Expand Up @@ -146,7 +146,7 @@ paths:
required: true

responses:
"200":
"201":
description: Created the voucher.
content:
application/json:
Expand Down Expand Up @@ -180,7 +180,7 @@ paths:
required: true

responses:
"200":
"201":
description: Created the notice.
content:
application/json:
Expand Down Expand Up @@ -211,7 +211,7 @@ paths:
required: true

responses:
"200":
"202":
description: Created the report.

default:
Expand Down Expand Up @@ -272,7 +272,7 @@ paths:
required: true

responses:
"200":
"202":
description: Accepted the exception throw.

default:
Expand Down Expand Up @@ -311,6 +311,17 @@ components:
- data

Advance:
type: object
properties:
metadata:
$ref: "#/components/schemas/Metadata"
payload:
$ref: "#/components/schemas/Payload"
required:
- metadata
- payload

Metadata:
type: object
properties:
chain_id:
Expand Down Expand Up @@ -350,8 +361,6 @@ components:
format: uint64
description: Unix timestamp of block in milliseconds.
example: 1588598533000
payload:
$ref: "#/components/schemas/Payload"
required:
- chain_id
- app_contract
Expand All @@ -360,7 +369,6 @@ components:
- input_index
- block_number
- block_timestamp
- payload

Payload:
type: string
Expand Down Expand Up @@ -443,7 +451,7 @@ components:
type: integer
format: uint16
description: An arbitrary number representing the request domain.
example: 8
example: 16
id:
type: string
format: hex
Expand Down

0 comments on commit 8c8c75c

Please sign in to comment.