callback-payload-verification-algorithm-required
Overview
This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:
When payload verification is defined for a callback group, the algorithm field must be specified. This defines the hashing algorithm used to verify the integrity of the callback payload.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | The payload verification algorithm is required for the callback group. |
| Code | OPENAPI3APIMATIC_L513 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Callbacks |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi apimatic semantic linting callback payload verification algorithm required |
Suggested Fixes
- Specify a valid
algorithmfield in the payload verification definition. - Supported algorithms include HMAC-SHA256, HMAC-SHA512, etc
For More Information
- https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#callback-group-extension
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callback-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md
- https://docs.apimatic.io/rulesets/overview/