The Swagger Parameter object
inname
Required properties
| Property | Type | Description | Combination style |
|---|---|---|---|
in |
string |
Required. Determines the location of the parameter specification. The
value must be one of the following:
|
First non-null |
items |
Items object |
Required if |
Merge |
name |
string |
Required. Specifies the name of the parameter:
In all cases, PolicyCenter uses this value to look for a matching parameter in the API handler method to which it can pass the runtime value. |
First non-null |
schema |
Schema object |
Required if |
First non-null |
type |
string |
Required unless You must specify a value for this property if the parameter is in the query, path or header. Do not specify a value for this property for body parameters. The property value must be one of the following:
|
First non-null |
Optional properties
| Property | Type | Description | Combination style |
|---|---|---|---|
$ref |
string |
References a parameter defined on the Swagger root document. It is not possible to combine this property with any other properties. Use the following syntax for the string value:
|
First non-null |
allowEmptyValue |
boolean |
Determines if it is permissible to give this parameter an empty value. Use this
property with |
First non-null |
collectionFormat |
string |
Determines what separator PolicyCenter uses for
splitting parameter values if the parameter is of type
array. The
value must be one of the following types:
|
First non-null |
default |
Any |
Specifies a default value for the parameter if the parameter is not specified on
input. Do not use with At runtime, if you do not specify a value for the parameter, the
|
First non-null |
description |
string |
Documentation only. | First non-null |
enum |
Any[] |
Specifies a list of values that the input must match. PolicyCenter turns the Each member of the array must be a JSON value that PolicyCenter can parse based on the |
First non-null |
exclusiveMaximum |
boolean |
Determines if PolicyCenter treats the maximum value of this property as inclusive or exclusive for purposes of comparison between two values. The default value is |
First non-null |
exclusiveMinimum |
boolean |
Determines if PolicyCenter treats the minimum value of this property as inclusive or exclusive for purposes of comparison between two values. The default value is |
First non-null |
format |
string |
Defines the base JSON type format for the parameter. The combination of
Do not specify a value for this property if this is a |
First non-null |
maximum |
number |
Specifies the maximum numeric value allowed for this parameter. PolicyCenter parses this value as a fixed-point value, with no loss of precision. PolicyCenter then converts the value to an internal Java representation for the purpose of comparison at runtime. The comparison is either inclusive or exclusive of the Example 1. If the parameter has a Example 2. If the parameter has a Only set a value for this property if the parameter's runtime type is a numeric type. |
First non-null |
maxItems |
integer |
Specifies the maximum number of array members, inclusive. Only set a value for
this property if the parameter is of type |
First non-null |
maxLength |
integer |
Determines the maximum length of the parameter value, inclusive. Only set a value
for the |
First non-null |
miniItems |
integer |
Specifies the minimum number of array members, inclusive. Only set a value for
this property if the parameter is of type |
First non-null |
minimum |
number |
Specifies the minimum numeric value allowed for this parameter. PolicyCenter parses this value as a fixed-point value, with no loss of precision. PolicyCenter then converts the value to an internal Java representation for the purpose of comparison at runtime. The comparison is either inclusive or exclusive of the This property operates in an analogous manner to the Only set a value for this property if the parameter's runtime type is a numeric type. |
First non-null |
minLength |
integer |
Determines the minimum length of the parameter value, inclusive. Only set a value
for the |
First non-null |
multipleOf |
number |
Specifies that the parameter value must be a multiple of the value of this property. PolicyCenter parses this value as a fixed-point value, with no loss of precision. PolicyCenter then converts the value to an internal Java representation for the purpose of comparison at runtime. Set a value for this property only if the runtime type of the parameter is a numeric type. |
First non-null |
pattern |
string |
Specifies a regular expression that the input must match. PolicyCenter does not explicitly anchor the regular expression by default. If you want the regular expression to match the entire input string, then you need to explicitly anchor the expression with ^ and $. PolicyCenter evaluates the Only set a value for the |
First non-null |
reqired |
boolean |
If set to Set this property to |
First non-null |
uniqueItems |
boolean |
If set to The default value is |
First non-null |
Guidewire extension properties
| Property | Type | Description | Combination style |
|---|---|---|---|
x-gw-export-enumeration |
boolean |
If set to The default is |
First non-null |
x-gw-extensions |
map<string, AnyType> |
The values in This value can be an arbitrary map of property keys to values. The key values can be any string, and the AnyType values can be any object, including nested JSON objects. |
Merge of extensions |
x-gw-type |
string |
Defines the base JSON type for the parameter. The combination of
Do not specify this value for |
First non-null |
