3c28803b99809aa19809f4a80076acabb50829d3
[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 import { SwaggerBaseParameter } from "./swagger-base-parameter";
13 import { SwaggerItems } from "./swagger-items";
14
15 export interface SwaggerNormalParameter extends SwaggerBaseParameter {
16     type: string;//"string", "number", "integer", "boolean", "array" or "file"
17     format?: string;//https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#dataTypeFormat
18     allowEmptyValue?: boolean;
19     items?: SwaggerItems;
20     collectionFormat?: string;
21     default?: any;
22     maximum?: number;
23     exclusiveMaximum?: boolean;
24     minimum?: number;
25     exclusiveMinimum?: boolean;
26     maxLength?: number;//integer;
27     minLength?: number;//integer;
28     pattern?: string;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
29     maxItems?: number;//integer;
30     minItems?: number;//integer;
31     uniqueItems?: boolean;
32     enum?: any[];
33     multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1.
34 }