oasgen-core 0.10.0

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
use crate::impl_oa_schema;

impl_oa_schema!(::chrono::NaiveDate, crate::Schema::new_string().with_format("date"));
impl_oa_schema!(::chrono::DateTime<::chrono::Utc>, crate::Schema::new_string().with_format("date-time"));
impl_oa_schema!(::chrono::NaiveDateTime, crate::Schema::new_string().with_format("date-time"));