callback-discriminator-property-pointer-empty-path
Overview
This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:
The property pointer in the event discriminator must contain a non-empty path after the location prefix $request.body#/. An empty path cannot identify a specific field in the request body.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | The event discriminator property pointer has an empty path. |
| Code | OPENAPI3APIMATIC_L508 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Callbacks |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi apimatic semantic linting callback discriminator property pointer path |
Suggested Fixes
- https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#callback-group-extension
- Provide a non-empty path in the property pointer that identifies the discriminator property.
- The path should point to a specific property in the request body schema.