A data verification method and device
By introducing sections and pre-set data verification rules in the application, verifying the interface response data, solving the problem of hard coding and poor performance of data verification rules in the prior art, and achieving flexible adjustment of data verification rules and improve interface performance.
Patent Information
- Application Number
- CN202010495396.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-03
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-06-03
AI Technical Summary
In the prior art, data verification rules are hard-coded in applications and cannot be flexibly adjusted according to changes in business scenarios, and data verification is performed every time the interface is called, which reduces the interface performance.
Through the sections and pre-set data verification rules, the response data output from the annotated interface is checked, and the data verification process is redefined, so that the data verification rules are decoupled from the application. When the business scenario changes, you can flexibly adjust the data verification rules and define the tangent point through annotations to avoid configuring the interface path of the configuration file.
Without changing the original code of the application, the data verification process is redefined, the data verification rules and applications are decoupled, the function of flexibly adjusting the data verification rules is realized, the interface performance is improved, and the alarm mechanism is passed Notify the operation personnel in a timely manner.
Smart Images

Figure CN113778725B_ABST
Abstract
Citation Information
Patent Citations
Interface coding method, server and computer readable storage medium
CN110413269A
Parameter verification method and device
CN110765422A