cat_gateway::service::utilities::middleware::schema_validation

Function schema_version_validation

Source
pub(crate) fn schema_version_validation(ep: impl Endpoint) -> impl Endpoint
Expand description

A function that wraps an endpoint with the SchemaVersionValidation.

This function is convenient to use with poem-openapi operation parameters via the transform attribute.