Skip to content

Commit f519ca7

Browse files
authored
Make snapshot info in CreateSnapshotResponse optional (#1326)
1 parent a3349f2 commit f519ca7

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

output/schema/schema.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/snapshot/create/SnapshotCreateResponse.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ import { SnapshotInfo } from '@snapshot/_types/SnapshotInfo'
2121

2222
export class Response {
2323
body: {
24-
/** @since 7.15.0 */
24+
/**
25+
* Equals `true` if the snapshot was accepted. Present when the request had `wait_for_completion` set to `false`
26+
* @since 7.15.0
27+
*/
2528
accepted?: boolean
26-
snapshot: SnapshotInfo
29+
/**
30+
* Snapshot information. Present when the request had `wait_for_completion` set to `true`
31+
*/
32+
snapshot?: SnapshotInfo
2733
}
2834
}

0 commit comments

Comments
 (0)