The x-cache-invalidates-operation-ids
extension is designed for use in auto-generated client-side code, facilitating automated cache invalidation based on operation interactions. This extension allows API designers to specify operation IDs that should trigger cache invalidation in the client's local cache, ensuring data consistency and up-to-date information in client applications.
Applied within the paths
section of an OpenAPI document, this extension targets individual API operations. It specifies which operations, identified by their operationId
, should have their cache invalidated upon the execution of a given operation.