Skip to content

Client generation fails with null reference when operationId is not present #162

@sotetos

Description

@sotetos

The client generation currently uses the operation Id to determine the method name. This can be great since the operationId is unique, but it causes and error when using the default swagger generation in a new .net 6 project, which doesn't include it by default.

You can (and likely should) add it to the swagger document, but it would be great to add a default to Yardarm as well.

The null is created here: https://github.com/CenterEdge/Yardarm/blob/main/src/main/Yardarm/Generation/Tag/TagTypeGeneratorBase.cs#L29

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