add saveAs parameters to models.
This commit is contained in:
Родитель
7ff8ffc33e
Коммит
b21ae15b12
|
@ -9,6 +9,7 @@ export const pageSchema = require('./schemas/page.json');
|
|||
export const settingsSchema = require('./schemas/settings.json');
|
||||
export const basicFilterSchema = require('./schemas/basicFilter.json');
|
||||
export const createReportSchema = require('./schemas/reportCreateConfiguration.json');
|
||||
export const saveAsParametersSchema = require('./schemas/saveAsParameters.json');
|
||||
/* tslint:enable:no-var-requires */
|
||||
|
||||
import * as jsen from 'jsen';
|
||||
|
@ -428,3 +429,9 @@ export enum ViewMode {
|
|||
View,
|
||||
Edit
|
||||
}
|
||||
|
||||
export interface ISaveAsParameters {
|
||||
name: string;
|
||||
}
|
||||
|
||||
export const validateSaveAsParameters = validate(saveAsParametersSchema);
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"messages": {
|
||||
"type": "name must be a string",
|
||||
"required": "name is required"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче