-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Milestone
Description
This may be a bit weird, but I found it in the wild in https://www.keycloak.org/docs-api/24.0.1/rest-api/openapi.yaml
I get the following error with a very simple config:
package: client
output: client.gen.go
generate:
models: true
client: true
I get the following error:
error generating code: error creating operation definitions: path '/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-uuid}' has 4 positional parameters, but spec has 3 declared
Here's the relevant excerpt of the keycloak YAML (note that {client-uuid} is repeated in the URL):
openapi: 3.0.3
paths:
/admin/realms/{realm}/clients/{client-uuid}/roles/{role-name}/composites/clients/{client-uuid}:
get:
tags:
- Roles
summary: Get client-level roles for the client that are in the role's composite
parameters:
- name: client-uuid
in: path
required: true
schema:
type: string
- name: role-name
in: path
description: role's name (not id!)
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/RoleRepresentation'
parameters:
- name: realm
in: path
description: realm name (not id!)
required: true
schema:
type: stringReactions are currently unavailable