diff --git a/src/types.ts b/src/types.ts index 24829ec..a94ba2c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -17,6 +17,7 @@ import { map, double, base64, + either, } from './validators'; type int = number; @@ -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; @@ -423,7 +424,7 @@ export const AttachmentSpec: ObjectSpec = { file_name: string, summary: string, content_type: string, - is_private: boolean, + is_private: either(boolean, int), is_obsolete: boolean, is_patch: boolean, creator: string,