Skip to content

Commit

Permalink
fix: nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvolek committed Sep 19, 2024
1 parent 60ce57a commit 554012d
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 6 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
5 changes: 2 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>Blockfrost Open API</title>
<meta charset="UTF-8" />
<link
rel="icon"
Expand Down Expand Up @@ -56,8 +55,8 @@
/>
<meta httpEquiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Blockfrost.io - Cardano API</title>
<meta name="title" content="Blockfrost.io - Cardano API" />
<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."
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 554012d

Please sign in to comment.