Function rocket_okapi::util::add_default_response_schema
source · [−]pub fn add_default_response_schema(
responses: &mut Responses,
content_type: impl ToString,
schema: SchemaObject
) -> &mut RefOr<Response>
Expand description
Add default
response with a Schema, for when status code is defined at runtime.
https://spec.openapis.org/oas/v3.0.0#fixed-fields-13