# US 11,909,804 B2 · Selective validation of a portion of a server response to a client request

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,909,804 B2
- Document ID: US11909804B2
- Status: Granted
- Kind: B2
- Application number: 17/572,940
- Filed: 2022-01-11
- Published: 2023-07-13
- Granted: 2024-02-20
- Earliest claimed: 2022-01-11
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Josejulio Martinez Magana
- Web page: https://patentgrep.com/patent/US11909804B2

## CPC

- H04L 67/01: Protocols
- H04L 63/306: {intercepting packet switched data communications, e.g. Web, Internet or IMS communications}
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- H04L 67/133: Protocols for remote procedure calls [RPC]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the validation process is configured to determine whether the target data is compatible with the client application.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the one or more predefined criteria include a formatting criteria, and wherein the validation process is configured to determine whether the target data satisfies the formatting criteria by determining whether the target data conforms to a predesignated format.

### Claim 4 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the one or more predefined criteria include a completeness criteria, and wherein the validation process is configured to determine that the target data satisfies the completeness criteria based on the target data including a predesignated set of parameters.

### Claim 5 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the client application includes the selection engine, the selection engine being executable by the processor to:
parse the response into the target data and the other data; and
provide the target data to the validation engine on the client device.

### Claim 6 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the client application is separate from the selection engine on the client device, the selection engine being executable by the processor to:
intercept the response from the server prior to response reaching the client application; and
parse the response into the target data and the other data.

### Claim 7 (depends on 6)

The non-transitory computer-readable medium of claim 6, wherein the selection engine includes the validation engine, the validation engine being executable by the processor for causing the processor to:
execute the validation process to determine whether the target data satisfies the one or more predefined criteria;
in response to determining that the target data satisfies the one or more predefined criteria, forward the target data to the client application for use by the client application in executing one or more computing operations; and
in response to determining that the target data fails to satisfy the one or more predefined criteria, transmit an error message to the client application.

### Claim 8 (depends on 6)

The non-transitory computer-readable medium of claim 6, wherein the client application includes the validation engine, and wherein the selection engine is further executable by the processor for causing the processor to:
forward the target data and not the other data to the validation engine of the client application.

### Claim 9 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the program code is further executable by the processor for causing the processor to:
retrieve one or more settings from a configuration file by accessing the configuration file;
determine that the target data is to be validated based on the one or more settings; and
determine that the other data is to be ignored based on the one or more settings.

### Claim 10 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the client application is configured to transmit the API request to the server, the API request being for retrieving a dataset that includes the target data and the other data from the server, and the response including the dataset.

### Claim 11

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.

### Claim 12 (depends on 11)

The method of claim 11, wherein the validation process is configured to determine whether the target data is compatible with the client application.

### Claim 13 (depends on 11)

The method of claim 11, wherein the one or more predefined criteria include a completeness criteria, and wherein the validation process is configured to determine that the target data fails to satisfy the completeness criteria based on determining that the target data excludes at least one parameter of a predesignated set of parameters.

### Claim 14 (depends on 11)

The method of claim 11, wherein the client application includes the selection engine, and further comprising:
receiving, by the selection engine, the response;
parsing, by the selection engine, the response into the target data and the other data;
determining, by the selection engine, that the target data is to be validated; and
in response to determining that the target data is to be validated, providing, by the selection engine, the target data to the validation engine on the client device.

### Claim 15 (depends on 11)

The method of claim 11, wherein the selection engine is separate from the client application, and further comprising:
intercepting, by the selection engine, the response from the server prior to response reaching the client application;
parsing, by the selection engine, the response into the target data and the other data;
determining, by the selection engine, that the target data is to be validated; and
in response to determining that the target data is to be validated, providing, by the selection engine, the target data to the validation engine on the client device.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
forwarding, by the selection engine, the target data and not the other data to the client application, the client application including the validation engine that is executable to perform the validation process on the target data.

### Claim 17 (depends on 11)

The method of claim 11, further comprising:
executing, by the validation engine on the client device, the validation process to determine whether the target data satisfies the one or more predefined criteria;
in response to determining that the target data satisfies the one or more predefined criteria, providing, by the validation engine, the target data for use by the client application in executing one or more computing operations; and
in response to determining that the target data fails to satisfy the one or more predefined criteria, providing, by the validation engine, an error message to the client application.

### Claim 18 (depends on 11)

The method of claim 11, further comprising:
retrieving, by the selection engine, one or more settings from a configuration file by accessing the configuration file;
determining, by the selection engine, that the target data is to be validated based on the one or more settings; and
determining, by the selection engine, that the other data is to be ignored based on the one or more settings.

### Claim 19 (depends on 11)

The method of claim 11, further comprising:
transmitting, by the client application, the API request to the server, the API request being for retrieving a dataset that includes the target data and the other data from the server, and the response including the dataset.

### Claim 20

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.
