openapi_nexus_core/data/
parameter_info.rs

1//! Parameter information with raw OpenAPI schema
2
3use serde::{Deserialize, Serialize};
4use utoipa::openapi;
5use utoipa::openapi::RefOr;
6use utoipa::openapi::schema::Schema;
7
8/// Parameter information with raw OpenAPI schema
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct ParameterInfo {
11    pub name: String,
12    pub schema: Option<RefOr<Schema>>,
13    pub required: bool,
14    pub deprecated: bool,
15    pub location: openapi::path::ParameterIn,
16}