Skip to content

When property of type object contains empty additionalProperties nonexistant type is generated #348

@Dennor

Description

@Dennor

When an type object contains empty additional properties such this kopium generates non existant type and compilation fails with

help: you might be missing a type parameter
      |
22921 | pub struct TidbClusterStatusTikvFailureStores<TidbClusterStatusTikvFailureStoresPvcUidSet> {
      |                                              +++++++++++++++++++++++++++++++++++++++++++++

error[E0412]: cannot find type `TidbClusterStatusTikvFailureStoresPvcUidSet` in this scope
     --> tests/./gen.rs:22929:46
      |
22929 |     pub pvc_uid_set: Option<BTreeMap<String, TidbClusterStatusTikvFailureStoresPvcUidSet>>,
      |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions