c152830ce3cd79294eae5f4bde8270bf9245378b
[sdc/sdc-workflow-designer.git] /
1 /*******************************************************************************
2  * Copyright (c) 2018 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  *******************************************************************************/
12 export interface SwaggerSchema {
13     $ref?: string;
14     format?: string;
15     title?: string;
16     description?: string;
17     default?: any;
18     multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1.
19     maximum?: number;
20     exclusiveMaximum?: boolean;
21     minimum?: number;
22     exclusiveMinimum?: boolean;
23     maxLength?: number;//integer;
24     minLength?: number;//integer;
25     pattern?: string;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
26     maxItems?: number;//integer;
27     minItems?: number;//integer;
28     uniqueItems?: boolean;
29     maxProperties?: number;//integer;
30     minPropertiesnumber?: number;//integer;
31     required?: boolean | string[];
32     enum?: any[];
33     type?: string;
34     items?: SwaggerSchema | SwaggerSchema[];
35     allOf?: any;//every property is a SwaggerSchema;
36     properties?: any;//every property is a SwaggerSchema;
37     additionalProperties?: any;//every property is a SwaggerSchema;//boolean | SwaggerSchema;
38 }