ContainerSerializationStyle

This enum contains supported object and arrays serialization styles. Every style has a enum value, and an array of strings to refeer to it.

Name

Description

csv

Comma separated values: "value1,value2,value3" aliases: "csv", "commaDelimited", "form", "simple"

ssv

Space separated values: "value1 value2 value3" aliases: "ssv", "spaceDelimited"

psv

+ Pipe separated values: "value1

value2

value3" aliases: "psv", "pipeDelimited" +

dsv

Dot delimited values: "value1.value2.value3" aliases: "dsv", "dotDelimited", "label"

simple_exploded_object

For internal usage, don't use it

matrix_exploded_array

For internal usage, don't use it

ErrorType

Name

Description

PATH_NOT_FOUND

You are trying to mount an operation (combination of path and method) not defined in specification

OPERATION_ID_NOT_FOUND

You are trying to mount an operation with operation_id not defined in specification

SPEC_INVALID

Specification is not valid

MISSING_SECURITY_HANDLER

Missing security handler during construction of router

INVALID_SPEC_PATH

You have provided a wrong directory/path to specification file

PATH_PARAMETERS_COMBINATION_NOT_SUPPORTED

You are trying to use two or more path parameters with a combination of parameters/name/styles/explode not supported

ErrorType

All errors type. You can get this values using link

Name

Description

NO_MATCH

The provided value not match with ParameterTypeValidator rules

NOT_FOUND

Parameter not found in request

UNEXPECTED_ARRAY

It was expected a single value, but found in request an array

UNEXPECTED_SINGLE_STRING

It was expected an array, but found in request a single value

FILE_NOT_FOUND

Expected file not found

WRONG_CONTENT_TYPE

Wrong Content-Type header

EMPTY_VALUE

Parameter found but with empty value

UNEXPECTED_ARRAY_SIZE

Expected an array size between parameters configured in link

DESERIALIZATION_ERROR

Error during deserializaton with rule provided

OBJECT_FIELD_NOT_FOUND

Object field declared as required in link not found

JSON_NOT_PARSABLE

Json can't be parsed

JSON_INVALID

Json doesn't match the provided schema

XML_INVALID

XML doesn't match the provided schema

ParameterLocation

ParameterLocation describe the location of parameter inside HTTP Request

Name

Description

HEADER

-

QUERY

-

PATH

-

FILE

-

BODY_FORM

-

BODY

-

BODY_JSON

-

BODY_XML

-

COOKIE

-

ParameterType

ParameterType contains prebuilt type validators. To access to ParameterTypeValidator of every ParameterType, use link

Name

Description

GENERIC_STRING

STRING Type accept every string

EMAIL

-

URI

-

BOOL

It allows true, false, t, f, 1, 0

INT

INT type does the validation with Integer.parseInt(value)

FLOAT

FLOAT type does the validation with Float.parseFloat(value)

DOUBLE

DOUBLE type does the validation with Double.parseDouble(value)

DATE

DATE as defined by full-date - RFC3339

DATETIME

DATETIME as defined by date-time - RFC3339

TIME

TIME as defined by partial-time - RFC3339

BASE64

-

IPV4

-

IPV6

-

HOSTNAME

-