Skip to content

[Question] Code generation with TLS support #12776

Open

Description

@revit13

Does openapi-generator supports generating code for the client or server in go that communicates with TLS or MTLS?
IIUC The TLS support is introduced in OpenAPI Spec 3.1.x while the latest openapi-generator is compatible with openAPI Spec 3.0 thus the TLS support is not yet supported by openapi-generator tool - is my understanding correct? Thanks

Activity

  1. ghusta commented on Mar 4, 2023

    @ghusta
  2. ZandercraftGames commented on May 28, 2026

    @ZandercraftGames

    Throwing my support in here as well. We use mTLS for our API, which is fully supported by the OpenAPI specification (see ghusta's link).

    I know that #22229 added support for actually passing in the mTLS variables. It would be good for it to actually pick up on and require mTLS based on the mutualTLS setting instead of throwing:

    [main] ERROR o.o.codegen.DefaultCodegen - Unknown type `mutualTLS` found in the security definition `null`.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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