Skip to content

TypeError(InvalidValue) when generating clientΒ #1203

@open-schnick

Description

@open-schnick

Hi there,
i cant get the generation of a crate to work when using the jellyfin-api spec.
According to openapi-generator the spec is not malformed but quite large and messy.

cargo progenitor -i jellyfin-openapi-stable.json -o bindings -n bindings --version 10.11.0
gen fail: TypeError(InvalidValue)
Error: generation experienced errors

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: cargo_progenitor::main
   2: std::sys::backtrace::__rust_begin_short_backtrace
   3: std::rt::lang_start::{{closure}}
   4: std::rt::lang_start_internal
   5: main
   6: <unknown>
   7: __libc_start_main
   8: _start

The stacktrace is also not very helpful but it seems the error comes from the typify crate here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions