Browse Source

github: fix linter configuration errors and occluded errors (#6400)

v0.34/x
Sam Kleinman 4 years ago
committed by GitHub
parent
commit
0407cd5258
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 7 deletions
  1. +1
    -1
      .github/workflows/linter.yml
  2. +31
    -6
      rpc/openapi/openapi.yaml

+ 1
- 1
.github/workflows/linter.yml View File

@ -28,5 +28,5 @@ jobs:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_MD: true
VALIDATE_OPAENAPI: true
VALIDATE_OPENAPI: true
VALIDATE_YAML: true

+ 31
- 6
rpc/openapi/openapi.yaml View File

@ -537,8 +537,7 @@ paths:
type: array
items:
type: string
example:
["f9baeaa15fedf5e1ef7448dd60f46c01f1a9e9c4@1.2.3.4:26656"]
example: "f9baeaa15fedf5e1ef7448dd60f46c01f1a9e9c4@1.2.3.4:26656"
responses:
"200":
description: Dialing seeds in progress. See /net_info for details
@ -588,8 +587,7 @@ paths:
type: array
items:
type: string
example:
["f9baeaa15fedf5e1ef7448dd60f46c01f1a9e9c4@1.2.3.4:26656"]
example: "f9baeaa15fedf5e1ef7448dd60f46c01f1a9e9c4@1.2.3.4:26656"
responses:
"200":
description: Dialing seeds in progress. See /net_info for details
@ -724,7 +722,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/BlockResultsResponse"
$ref: "#/components/schemas/BlockSearchResponse"
"500":
description: Error
content:
@ -1069,7 +1067,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/BlockSearchResponse"
$ref: "#/components/schemas/BlockResultsResponse"
"500":
description: Error
content:
@ -2747,6 +2745,33 @@ components:
type: string
example: "Dialing seeds in progress. See /net_info for details"
BlockSearchResponse:
type: object
required:
- "jsonrpc"
- "id"
- "result"
properties:
jsonrpc:
type: string
example: "2.0"
id:
type: integer
example: 0
result:
required:
- "blocks"
- "total_count"
properties:
blocks:
type: array
items:
$ref: "#/components/schemas/BlockComplete"
total_count:
type: integer
example: 2
type: object
###### Reuseable types ######
# Validator type with proposer prioirty


Loading…
Cancel
Save