Selective validation of a portion of a server response to a client request
AssigneeRed Hat, Inc.
InventorJosejulio Martinez Magana
Life of this patent
Estimating the term…
Abstract
A portion of a server response to a client request can be selectively validated according to some examples described herein. In one example, a system can receive a response from a server to an application programming interface (API) request transmitted by a client application. The response can include target data and other data. The system can determine that the target data is to be validated. In response to determining that the target data is to be validated, the system allow a validation process to be performed on the target data and prevent the validation process from being performed on the other data.
Claims20
A non-transitory computer-readable medium comprising program code that is executable by a processor of a client device for causing the client device to:
- receive, at a selection engine, a response from a server to an application programming interface (API) request transmitted by a client application on the client device, the response including target data and other data in a particular format;
- determine, using the selection engine, that the target data is to be validated and that the other data is not to be validated;
- provide, from the selection engine, the target data and not the other data to a validation engine in response to determining that the target data and not the other data is to be validated;
- perform, using the validation engine, a validation process on the target data and not on the other data, wherein the validation process involves determining whether the target data satisfies one or more predefined criteria;
- and
- in response to determining that the target data is valid, provide, from the validation engine, the validated target data in the particular format for use by the client application.
A method comprising:
- receiving, by a selection engine executing on a processor of a client device, a response from a server to an application programming interface (API) request transmitted by a client application on the client device, the response including target data and other data in a particular format;
- determining, by the selection engine, that the target data is to be validated and that the other data is not to be validated;
- providing, by the selection engine, the target data and not the other data to a validation engine in response to determining that the target data and not the other data is to be validated;
- performing, by the validation engine executing on the processor, a validation process on the target data and not on the other data, wherein the validation process involves determining whether the target data satisfies one or more predefined criteria;
- and
- in response to determining that the target data is valid, providing, by the validation engine, the validated target data in the particular format for use by the client application.
A client device comprising:
- a processor;
- and
- a memory including instructions that are executable by the processor for causing the client device to:
- receive, at a selection engine, a response from a server to an application programming interface (API) request transmitted by a client application on the client device, the response including target data and other data in a particular format;
- determine, using the selection engine, that the target data is to be validated;
- provide, from the selection engine, the target data and not the other data to a validation engine in response to determining that the target data and not the other data is to be validated;
- perform, using the validation engine, a validation process on the target data and not the other data, wherein the validation process involves determining whether the target data satisfies one or more predefined criteria;
- and
- in response to determining that the target data is valid, provide, from the validation engine, the validated target data in the particular format for use by the client application.
Dependencies are inferred from the claim text.