A resource’s schema is controlled using the ValidatorManager
component and payloadSchema.xml
files. These XML files configure multiple validators that contain the definitions for expected input fields, as well as required output fields. Endpoints can specify which validator definition to use for input, using the validatorId
attribute, and for output, using the filterId
attribute.
For additional information on using the filter ID, refer to the Associating a Filter with an Endpoint section. Endpoints can be configured with the RepresentationModel
to be more dynamic by overriding these values at run time, as described in Override Filter ID Builder Method.