Passing ServiceProviderConfig to the serialization and validation context would allow to check for additional things.
For example:
- if
etag is not supported, then requests can avoid setting etags metadata
- if
filter or sort are not supported, then they should not be passed when building SearchRequest objects.
- if
bulk.maxOperation and bulk.mayPayloadSize are set, avoid to go beyond those limits when building a request
- I am not sure what to do with
changePassword though
Passing ServiceProviderConfig to the serialization and validation context would allow to check for additional things.
For example:
etagis not supported, then requests can avoid setting etags metadatafilterorsortare not supported, then they should not be passed when buildingSearchRequestobjects.bulk.maxOperationandbulk.mayPayloadSizeare set, avoid to go beyond those limits when building a requestchangePasswordthough