Skip to content

Commit

Permalink
rh: allow is_private field for attachments to be a number
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 21, 2024
1 parent 7b181a0 commit 8b0019d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
map,
double,
base64,
either,
} from './validators';

type int = number;
Expand Down Expand Up @@ -406,7 +407,7 @@ export interface Attachment {
file_name: string;
summary: string;
content_type: string;
is_private: boolean;
is_private: boolean | int;
is_obsolete: boolean;
is_patch: boolean;
creator: string;
Expand All @@ -423,7 +424,7 @@ export const AttachmentSpec: ObjectSpec<Attachment> = {
file_name: string,
summary: string,
content_type: string,
is_private: boolean,
is_private: either(boolean, int),
is_obsolete: boolean,
is_patch: boolean,
creator: string,
Expand Down

0 comments on commit 8b0019d

Please sign in to comment.