Profiles

A profile references multiple structures and the positions at which they are applied in the response message. A maximum of one profile is selected and applied to each message.

Profile Configuration Properties describes the available profile configuration properties:

Table 1. Profile Configuration Properties
Property Description
responseGenerator.handlers.handlerName.profiles.profileName.structures[n].jsonPath A JSON path that describes where to attach the structure.
responseGenerator.handlers.handlerName.profiles.profileName.structures[n].structureName The name of the structure to apply at the given path. This structure is merged and overwrites any existing fields with the same names.

The simplest structure attachment example is reference of an object with a simple JSON path expression. For example, the following path merges a structure into the pduSessionInformation object in the pDUSessionChargingInformation field:

$.pDUSessionChargingInformation.pduSessionInformation

The path can match several locations in a message. For example, the following path matches all the statusInfo objects in the message:

$.statusInfos.[*]

Use a selective expression within the path to match a specific entry in a list of entries. For example, the following path only merges the structure into the multipleUnitInformation entry that has a ratingGroup equal to 2:

$.multipleUnitInformation[?(@.ratingGroup==2)]