Skip to main content

validate

Function validate 

Source
pub fn validate(manifest: &ServiceManifest) -> Result<(), OpenApiError>
Expand description

Check a documented manifest: operation ids unique across its published custom and CRUD operations, no two published routes documenting the same method and path, path = T naming exactly the route’s path parameters, query and path parameters that are scalars or arrays, security schemes the document defines, and no DTO sharing a table schema’s name. An undocumented manifest passes: its spec is today’s.