pub trait OpenApiRegistry: Send + Sync {
// Required methods
fn register_operation(&self, spec: &OperationSpec);
fn ensure_schema_raw(
&self,
name: &str,
schemas: Vec<(String, RefOr<Schema>)>,
) -> String;
fn as_any(&self) -> &dyn Any;
}Expand description
OpenAPI registry trait for operation and schema registration
Required Methods§
Sourcefn register_operation(&self, spec: &OperationSpec)
fn register_operation(&self, spec: &OperationSpec)
Register an API operation specification