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 export interface SwaggerSchema {
18 multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1.
20 exclusiveMaximum?: boolean;
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[];
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;