k8s-openapi-codegen-common 0.28.0

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

{cfg}impl{type_generics_impl} {local}schemars08::JsonSchema for {type_name}{type_generics_type}{type_generics_where} {{
    fn schema_name() -> std::string::String {{
        {definition_path:?}.into()
    }}

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