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

This commit is contained in:
Sam Kleinman
2021-04-28 11:08:42 -04:00
committed by GitHub
parent 10fc43f182
commit 0407cd5258
2 changed files with 32 additions and 7 deletions

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

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