diff --git a/report/schemas.api.md b/report/schemas.api.md index e9648eac..967cd3f7 100644 --- a/report/schemas.api.md +++ b/report/schemas.api.md @@ -997,8 +997,8 @@ export namespace Link { export type LinkerAuthorization = { name: string; desc: string; - startDate?: number; - endDate?: number; + startDate?: string; + endDate?: string; contactInfo: { name: string; [key: string]: string; diff --git a/src/misc/linker-authorization.ts b/src/misc/linker-authorization.ts index 712d1470..f86005c9 100644 --- a/src/misc/linker-authorization.ts +++ b/src/misc/linker-authorization.ts @@ -8,8 +8,8 @@ import { JSONSchema, ValidateFunction, generateLazyValidator } from '../validati export type LinkerAuthorization = { name: string desc: string - startDate?: number - endDate?: number + startDate?: string + endDate?: string contactInfo: { name: string [key: string]: string @@ -24,8 +24,8 @@ export namespace LinkerAuthorization { properties: { name: { type: 'string' }, desc: { type: 'string' }, - startDate: { type: 'number', nullable: true }, - endDate: { type: 'number', nullable: true }, + startDate: { type: 'string', nullable: true }, + endDate: { type: 'string', nullable: true }, contactInfo: { type: 'object', properties: {