Skip to content

Commit

Permalink
Merge pull request #370 from blockfrost/fixes2
Browse files Browse the repository at this point in the history
Fix og tags and null values
  • Loading branch information
slowbackspace authored Sep 19, 2024
2 parents 8dac5d7 + 9fc84e0 commit b6fe214
Show file tree
Hide file tree
Showing 10 changed files with 108 additions and 5 deletions.
2 changes: 2 additions & 0 deletions blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8683,6 +8683,7 @@ components:
- type: integer
- type: number
- type: boolean
- type: 'null'
description: Content of the JSON metadata
required:
- tx_hash
Expand Down Expand Up @@ -9730,6 +9731,7 @@ components:
- type: integer
- type: number
- type: boolean
- type: 'null'
description: JSON contents of the `timelock` script, null for `plutus` scripts
required:
- json
Expand Down
2 changes: 2 additions & 0 deletions docs/blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9134,6 +9134,7 @@ components:
- type: integer
- type: number
- type: boolean
- type: 'null'
description: Content of the JSON metadata
required:
- tx_hash
Expand Down Expand Up @@ -10219,6 +10220,7 @@ components:
- type: integer
- type: number
- type: boolean
- type: 'null'
description: 'JSON contents of the `timelock` script, null for `plutus` scripts'
required:
- json
Expand Down
93 changes: 91 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,97 @@
<!DOCTYPE html>
<html>
<head>
<title>Blockfrost Open API</title>
<meta charset="utf-8" />
<meta charset="UTF-8" />
<link
rel="icon"
type="images/png"
href="https://blockfrost.io/images/logo_symbol.png"
/>
<link
rel="shortcut icon"
href="https://blockfrost.io/images/favicon.ico"
type="image/x-icon"
/>
<link rel="apple-touch-icon" href="/images/apple-touch-icon.png" />
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://blockfrost.io//images/apple-touch-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://blockfrost.io//images/apple-touch-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://blockfrost.io//images/apple-touch-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://blockfrost.io//images/apple-touch-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://blockfrost.io//images/apple-touch-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://blockfrost.io//images/apple-touch-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://blockfrost.io//images/apple-touch-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://blockfrost.io//images/apple-touch-icon-180x180.png"
/>
<meta httpEquiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Blockfrost.io - Blockfrost Open API</title>
<meta name="title" content="Blockfrost Open API documentation" />
<meta
name="description"
content="We provide an instant and scalable Cardano API for free."
/>
<meta
name="keywords"
content="Cardano, IPFS, API, Cardano API, SDK, Developers, Ethereum killer, Proof of Stake, NFT, ADA, Lovelace, Shelley, Goguen, Byron, Blockchain, Typescript, Going for #1"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://blockfrost.io/" />
<meta property="og:title" content="Blockfrost Open API documentation" />
<meta
property="og:description"
content="We provide an instant and scalable Cardano API for free."
/>
<meta property="og:image" content="https://blockfrost.io/images/og.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://blockfrost.io/" />
<meta
property="twitter:title"
content="Blockfrost Open API documentation"
/>
<meta
property="twitter:description"
content="We provide an instant and scalable Cardano API for free."
/>
<meta
property="twitter:image"
content="https://blockfrost.io/images/og.png"
/>
<link
rel="shortcut icon"
href="https://blockfrost.io/images/favicon.ico"
type="image/x-icon"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion json-schema.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9134,6 +9134,7 @@ components:
- type: integer
- type: number
- type: boolean
- type: 'null'
description: Content of the JSON metadata
required:
- tx_hash
Expand Down Expand Up @@ -10219,6 +10220,7 @@ components:
- type: integer
- type: number
- type: boolean
- type: 'null'
description: 'JSON contents of the `timelock` script, null for `plutus` scripts'
required:
- json
Expand Down
4 changes: 2 additions & 2 deletions src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8746,7 +8746,7 @@ export interface components {
/** @description Content of the JSON metadata */
json_metadata: string | {
[key: string]: unknown;
} | unknown[] | number | boolean;
} | unknown[] | number | boolean | null;
}[];
/** @example [
* {
Expand Down Expand Up @@ -9646,7 +9646,7 @@ export interface components {
/** @description JSON contents of the `timelock` script, null for `plutus` scripts */
json: string | {
[key: string]: unknown;
} | unknown[] | number | boolean;
} | unknown[] | number | boolean | null;
};
/** @example {
* "cbor": "4e4d01000033222220051200120011"
Expand Down
1 change: 1 addition & 0 deletions src/schemas/scripts/script_json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ properties:
- type: integer
- type: number
- type: boolean
- type: "null"
description: JSON contents of the `timelock` script, null for `plutus` scripts
required:
- json
Expand Down
1 change: 1 addition & 0 deletions src/schemas/txs/tx_metadata_label_json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ items:
- type: integer
- type: number
- type: boolean
- type: "null"
description: Content of the JSON metadata
required:
- tx_hash
Expand Down
3 changes: 3 additions & 0 deletions test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15610,6 +15610,9 @@ State \`gc\` means that a previously \`unpinned\` item has been garbage collecte
{
"type": "boolean",
},
{
"type": "null",
},
],
"description": "Content of the JSON metadata",
},
Expand Down
3 changes: 3 additions & 0 deletions test/tests/get-schema-for-endpoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,9 @@ describe('getSchemaForEndpoint', () => {
{
"type": "boolean",
},
{
"type": "null",
},
],
"description": "Content of the JSON metadata",
},
Expand Down

0 comments on commit b6fe214

Please sign in to comment.