Skip to content

Commit

Permalink
fixed issues with schema in the open api spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Rutherford committed Oct 15, 2024
1 parent fc7ed49 commit 542a3f9
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ target
*.pyc
result
.direnv
.vscode/settings.json
openapitools.json
32 changes: 19 additions & 13 deletions doc/electrs-rest-btcd-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ paths:
content:
text/plain:
schema:
type: string
type: integer
/blocks/{start_height}:
get:
tags:
Expand Down Expand Up @@ -725,7 +725,7 @@ components:
Block:
type: object
properties:
name:
id:
type: string
height:
type: integer
Expand Down Expand Up @@ -769,6 +769,12 @@ components:
type: number
locktime:
type: number
size:
type: integer
weight:
type: integer
fee:
type: number
vin:
type: array
items:
Expand All @@ -777,10 +783,6 @@ components:
type: array
items:
$ref: '#/components/schemas/TxVout'
weight:
type: integer
size:
type: integer
status:
$ref: '#/components/schemas/TxStatus'
TxStatus:
Expand All @@ -791,7 +793,7 @@ components:
block_height:
type: integer
block_hash:
type: integer
type: string
block_time:
type: integer
TxVin:
Expand All @@ -801,20 +803,24 @@ components:
type: string
vout:
type: integer
prevout:
type: string
is_coinbase:
type: boolean
scriptsig:
type: string
scriptsig_asm:
type: string
inner_redeemscript_asm:
type: string
inner_witnessscript_asm:
type: string
sequence:
type: integer
witness:
type: array
items:
type: string
is_coinbase:
type: boolean
sequence:
type: integer
prevout:
$ref: '#/components/schemas/TxVout'
TxVout:
type: object
properties:
Expand Down
41 changes: 35 additions & 6 deletions doc/electrs-rest-liquid-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ paths:
content:
text/plain:
schema:
type: string
type: integer
/blocks/{start_height}:
get:
tags:
Expand Down Expand Up @@ -922,7 +922,7 @@ components:
Block:
type: object
properties:
name:
id:
type: string
height:
type: integer
Expand Down Expand Up @@ -1000,20 +1000,49 @@ components:
type: string
vout:
type: integer
prevout:
type: string
is_coinbase:
type: boolean
scriptsig:
type: string
scriptsig_asm:
type: string
inner_redeemscript_asm:
type: string
inner_witnessscript_asm:
type: string
sequence:
type: integer
witness:
type: array
items:
type: string
is_coinbase:
prevout:
$ref: '#/components/schemas/TxVout'
is_pegin:
type: boolean
sequence:
issuance:
$ref: '#/components/schemas/Issuance'
Issuance:
type: object
properties:
asset_id:
type: string
is_reissuance:
type: boolean
asset_blinding_nonce:
type: string
asset_entropy:
type: string
contract_hash:
type: string
assetamount:
type: integer
tokenamount:
type: integer
assetamountcommitment:
type: string
tokenamountcommitment:
type: string
TxVout:
type: object
properties:
Expand Down

0 comments on commit 542a3f9

Please sign in to comment.