Merge pull request #34 from Microsoft/alihamud-saveAsParameters
add saveAs parameters to models.
This commit is contained in:
Коммит
51315e82f8
|
@ -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"
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче