k8s-openapi-codegen-common 0.27.1

Common code for the k8s-openapi code generator and k8s-openapi-derive
Documentation
1
2
3
4
5
6
7
8
9
10

{cfg}impl{type_generics_impl} {local}schemars::JsonSchema for {type_name}{type_generics_type}{type_generics_where} {{
    fn schema_name() -> std::borrow::Cow<'static, str> {{
        {definition_path:?}.into()
    }}

    fn json_schema(__gen: &mut {local}schemars::SchemaGenerator) -> {local}schemars::Schema {{
        {local}schemars::json_schema!({schema})
    }}
}}