use schemars::JsonSchema;
use serde::Deserialize;
use brk_types::{Cohort, Date, UrpdAggregation};
#[derive(Deserialize, JsonSchema)]
pub struct UrpdParams {
pub cohort: Cohort,
#[schemars(with = "String", example = &"2024-01-01")]
pub date: Date,
}
#[derive(Deserialize, JsonSchema)]
pub struct UrpdCohortParam {
pub cohort: Cohort,
}
#[derive(Deserialize, JsonSchema)]
#[serde(deny_unknown_fields)]
pub struct UrpdQuery {
#[serde(default, rename = "agg", alias = "bucket")]
pub aggregation: UrpdAggregation,
}