oasgen-core 0.20.2

Dependency of oasgen. Generates OpenAPI 3.0 spec based on Rust code. Works with actix-web, but architected to easily extend to other frameworks (or no framework).
Documentation
1
2
3
4
5
6
use crate::{impl_oa_schema, Schema};

impl_oa_schema!(::time::OffsetDateTime, Schema::new_string().with_format("date-time"));
impl_oa_schema!(::time::PrimitiveDateTime, Schema::new_string().with_format("date-time"));
impl_oa_schema!(::time::Date, Schema::new_string().with_format("date"));
impl_oa_schema!(::time::Time, Schema::new_string().with_format("time"));