Configure the schema extension file
The REST endpoint generator automatically adds the following fields to claim_ext-1.0.schema.json file:
- Incident
description
id
lossParty
severity
- Risk unit
RUnumber
description
id
policySystemId
- Damageable
- (none)
Configuring the incident
This is the syntax for a foreign key from a custom incident to a custom damageable.
For example, suppose you have a custom incident named
TowableIncident_Ext
that has a foreign key field to
Towable_Ext
. The schema property for the foreign key would
be:
If the incident has additional business fields you wish to expose, you must add them to the file manually. For most fields, you can find information on how to add them to a schema in Endpoint architecture.
Configuring the risk unit
This is the syntax for a foreign key from a custom risk unit to a custom damageable.
For example, suppose you have a custom risk unit named TowableRU_Ext
that has a foreign key field to Towable_Ext
. The schema property
for the foreign key would be:
If the risk unit has additional business fields you wish to expose, you must add them to the file manually. For most fields, you can find information on how to add them to a schema in Endpoint architecture.
Configuring the damageable
All fields in the damageable schema must be added manually.
Guidewire also recommends adding a displayName
property to the
damageable schema. The DisplayName
field is automatically present
for all Guidewire entities and it provides an easy way to distinguish between
individual damageable instances. The syntax for this field is:
As an example of a damageable schema, suppose you have a custom damageable named
Towable_Ext
that has the following fields:
PolicySystemId
PolicyTowable
LicensePlate
(a business field)TowableRU_Ext
(a one-to-one toTowableRU_Ext
)
The schema for the damageable would be: