Skip to content

Commit

Permalink
Spec fixes from vacuum linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Nov 5, 2023
1 parent 1eeb31c commit 89d1d2a
Show file tree
Hide file tree
Showing 8 changed files with 1,860 additions and 1,745 deletions.
721 changes: 372 additions & 349 deletions specs/results/koiosapi-guild.yaml

Large diffs are not rendered by default.

721 changes: 372 additions & 349 deletions specs/results/koiosapi-mainnet.yaml

Large diffs are not rendered by default.

721 changes: 372 additions & 349 deletions specs/results/koiosapi-preprod.yaml

Large diffs are not rendered by default.

721 changes: 372 additions & 349 deletions specs/results/koiosapi-preview.yaml

Large diffs are not rendered by default.

145 changes: 12 additions & 133 deletions specs/templates/2-api-params.yaml
Original file line number Diff line number Diff line change
@@ -1,65 +1,4 @@
parameters:
select:
name: select
description: Filtering Columns
schema:
type: string
in: query
required: false
on_conflict:
name: on_conflict
description: On Conflict
schema:
type: string
in: query
required: false
order:
name: order
description: Ordering
schema:
type: string
in: query
required: false
range:
name: Range
description: Limiting and Pagination
schema:
type: string
in: header
required: false
rangeUnit:
name: Range-Unit
description: Limiting and Pagination
schema:
default: items
type: string
in: header
required: false
offset:
name: offset
description: Limiting and Pagination
schema:
type: string
in: query
required: false
limit:
name: limit
description: Limiting and Pagination
schema:
type: string
in: query
required: false
example: 10
_block_hash:
deprecated: false
name: _block_hash
description: Block Hash in hex format
schema:
type: string
example: ##_block_hash_param##
in: query
required: true
allowEmptyValue: false
_after_block_height:
deprecated: false
name: _after_block_height
Expand All @@ -76,57 +15,17 @@ parameters:
description: Epoch Number to fetch details for
schema:
type: string
example: ##_epoch_no_param##
example: "##_epoch_no_param##"
in: query
required: false
allowEmptyValue: true
_earned_epoch_no:
deprecated: false
name: _epoch_no
description: Filter for earned rewards Epoch Number
schema:
type: string
example: ##_earned_epoch_no_param##
in: query
required: false
allowEmptyValue: true
_any_address:
deprecated: false
name: _address
description: Cardano payment or staking address in bech32 format
schema:
type: string
example: ##_any_address_param##
in: query
required: true
allowEmptyValue: false
_address:
deprecated: false
name: _address
description: Cardano payment address in bech32 format
schema:
type: string
example: ##_address_param##
in: query
required: true
allowEmptyValue: false
_address_assets:
deprecated: false
name: _address
description: Cardano payment address in bech32 format
schema:
type: string
example: ##_address_assets_param##
in: query
required: true
allowEmptyValue: false
_stake_address:
deprecated: false
name: _stake_address
description: Cardano staking address (reward account) in bech32 format
schema:
type: string
example: ##_stake_address_param##
example: "##_stake_address_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -136,7 +35,7 @@ parameters:
description: Asset Policy ID in hexadecimal format (hex)
schema:
type: string
example: ##_asset_policy_param##
example: "##_asset_policy_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -146,7 +45,7 @@ parameters:
description: Asset Name in hexadecimal format (hex), empty asset name returns royalties
schema:
type: string
example: "##_asset_name_param##"
example: "##_asset_name_param##"
in: query
required: false
allowEmptyValue: true
Expand All @@ -156,7 +55,7 @@ parameters:
description: NFT Policy ID in hexadecimal format (hex)
schema:
type: string
example: ##_asset_policy_nft_param##
example: "##_asset_policy_nft_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -166,7 +65,7 @@ parameters:
description: NFT Name in hexadecimal format (hex)
schema:
type: string
example: ##_asset_name_nft_param##
example: "##_asset_name_nft_param##"
in: query
required: false
allowEmptyValue: true
Expand All @@ -176,7 +75,7 @@ parameters:
description: Controls whether or not certain optional fields supported by a given endpoint are populated as a part of the call
schema:
type: boolean
example: "false"
example: false
in: query
required: false
allowEmptyValue: true
Expand All @@ -186,7 +85,7 @@ parameters:
description: Include all historical transactions, setting to false includes only the non-empty ones
schema:
type: boolean
example: "false"
example: false
in: query
required: false
allowEmptyValue: false
Expand All @@ -196,7 +95,7 @@ parameters:
description: Include information about nearing but not yet started epoch, to get access to active stake snapshot information if available
schema:
type: boolean
example: "false"
example: false
in: query
required: false
allowEmptyValue: true
Expand All @@ -206,7 +105,7 @@ parameters:
description: Pool ID in bech32 format
schema:
type: string
example: ##_pool_bech32_param##
example: "##_pool_bech32_param##"
in: query
required: true
allowEmptyValue: false
Expand All @@ -216,7 +115,7 @@ parameters:
description: Pool ID in bech32 format (optional)
schema:
type: string
example: ##_pool_bech32_optional_param##
example: "##_pool_bech32_optional_param##"
in: query
required: false
allowEmptyValue: true
Expand All @@ -226,27 +125,7 @@ parameters:
description: Script hash in hexadecimal format (hex)
schema:
type: string
example: ##_script_hash_param##
example: "##_script_hash_param##"
in: query
required: true
allowEmptyValue: false
_first_only:
deprecated: false
name: _first_only
description: Returns the first entry only (overrides _empty to true)
schema:
type: boolean
example: "false"
in: query
required: false
allowEmptyValue: true
_empty:
deprecated: false
name: _empty
description: Include zero quantity entries
schema:
type: boolean
example: "false"
in: query
required: false
allowEmptyValue: true
1 change: 1 addition & 0 deletions specs/templates/3-api-requestBodies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ requestBodies:
type: object
description: Any parameters relevant to the specific method to be called
nullable: true
example: null
examples:
blockHeight:
description: Query the network’s highest block number.
Expand Down
Loading

0 comments on commit 89d1d2a

Please sign in to comment.