Skip to content

Unable to generate from https://api.jellyfin.org/openapi/jellyfin-openapi-stable.json #2176

@voltagex

Description

@voltagex

With the following config:

package: main
generate:
  models: true
output: jellyfin.gen.go

Generating from https://api.jellyfin.org/openapi/jellyfin-openapi-stable.json at the time of writing

I get

/jellyfin.gen.go:886:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:887:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:888:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:889:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:890:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:891:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:892:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:893:62: invalid constant type TranscodingInfoTranscodeReasons
./jellyfin.gen.go:3263:18: VideoRangeType is not a type
./jellyfin.gen.go:5804:6: VideoRangeType redeclared in this block
        ./jellyfin.gen.go:731:2: other declaration of VideoRangeType
./jellyfin.gen.go:893:62: too many errors

I'll have a look into this at some point later, but I may have to use a different generator for now.

TranscodingInfoTranscodeReasons seems like it should be an enum but it's currently past midnight and I need to stop looking at this.

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