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
10 * ZTE - initial API and implementation and/or initial documentation
11 *******************************************************************************/
12 import { SwaggerBaseParameter } from "./swagger-base-parameter";
13 import { SwaggerItems } from "./swagger-items";
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;
20 collectionFormat?: string;
23 exclusiveMaximum?: boolean;
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;
33 multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1.