Breadcrumbs

REST Schema Object

This page explains the REST Import Rules in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to OpenAPI Import Rules in the Designer guide.

Schema objects can be defined inline or be a reference to an object of the definitions list.

A class is created for each schema object that is not a base type or array. If the schema object is in the definitions list, the key is used as class name instead a unique name is created using the path to the schema object (E.g.: "UserList_Items", "users_GET_response" ...).

Element

Used
By
Importer

Description

More Information at ...

$ref

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/check.png

A reference to a schema defined in the definitions list. the schema object is replaced by the definition.


type

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/check.png

The type of the object.

  • integer: base type Integer is used.

  • number: base type Float is used.

  • boolean: base type Boolean is used.

  • string: type depends on the format.byte: base type Blob is used.date-time: base type DateTime is used.otherwise base type String is used.

  • array: if used as type of a parameter the parameter will be an <<E2EArray>> and the class of items is used as arrayElement. If used as type of a property, the class of items is used and the multiplicity is set to 0..*.

  • object: A class is created and properties are created regarding the allOf and properties values.

If type is not given at all, and the definition has no properties, it will be imported as urn:Base Types.Any.


format

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/check.png

The format of the object is used to be more specific when the type is string.


items

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/check.png

The item is a schema object to defined the type of element in the array. Only used if type is array.


allOf

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/check.png

List of schema object. The resulting class will contain all properties of all listed schema objects.


properties

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/check.png

List of properties. Each property is define by a name and a schema object. A property is created on the resulting class for each properties defined.


additionalProperties

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/error.png

This should allow to define a map/dictionary.


xml

https://scheer-pas-doc.atlassian.net/wiki/s/1919486055/6452/c8d220627d4ff438dbc4c2b41ff70b9a00a36d21/_/images/icons/emoticons/error.png

Adds additional metadata to describe the XML representation format of this property.