The Swagger Schema object
The Schema object allows for the definition of input and output data types. These types can be objects, but also primitives and arrays. Guidewire does not allow inline schema definitions. Thus, only the following properties are valid. You must specify at least one of these properties if you use this object.
| Property | Type | Description | Combination style |
|---|---|---|---|
$ref |
string |
Required if
type not specified. Provides a link to the
JSON schema definition defined the file imported as alias using
property x-gw-schema-import. For example, suppose that
x-gw-schema-import contains the following key/value pair:
$ref reference string becomes the following:
In this string, If the operation consumes the If the API handler method takes a The string must be one of the following formats:
|
N/A |
type |
string |
Required if
$ref not specified. Defines the base JSON
type for the schema. The type value must be one of the
following:
|
N/A |
