Skip to content

Instantly share code, notes, and snippets.

@saxicek
Created January 22, 2026 13:41
Show Gist options
  • Select an option

  • Save saxicek/43daa70a6d95dece378f5729517cb0c1 to your computer and use it in GitHub Desktop.

Select an option

Save saxicek/43daa70a6d95dece378f5729517cb0c1 to your computer and use it in GitHub Desktop.
Repro for openapi-codegen issue "apiKeys cause service compilation errors"
openapi: 3.0.1
info:
title: Test API key in query
version: v1
paths:
/pet-store:
get:
operationId: get
parameters:
- name: id
in: query
required: true
schema:
type: string
responses:
'200':
description: Successful operation
components:
securitySchemes:
SessionIdAuth:
type: apiKey
in: query
name: sid
security:
- SessionIdAuth: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment