oasgen-core 0.1.8

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
use openapiv3::{Schema, ReferenceOr};
use crate::OaSchema;


impl<T> OaSchema for actix_web::web::Json<T>
    where
        T: OaSchema,
{
    fn schema_name() -> Option<&'static str> {
        T::schema_name()
    }

    fn schema_ref() -> Option<ReferenceOr<Schema>> {
        T::schema_ref()
    }

    fn schema() -> Option<Schema> {
        T::schema()
    }
}