You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
When a Common path parameter is present in a specification, the generator doesn't generate any way to input this parameter in the function (no path_parameters.py created in the paths/users_user_id/get folder).
Adding the path parameter manually in the method (in the get: of the yaml file) the correct files and function get created.
openapi-json-schema-generator version
Latest docker image (digest 09665ca30ce8)
OpenAPI declaration file content or url
openapi: 3.0.0info:
title: NetHSMversion: v1servers:
- url: https://{host}/api/{version}variables:
host:
default: localhost:8443version:
default: v1paths:
/users/{UserID}:
parameters:
- name: UserIDin: pathrequired: trueschema:
type: stringget:
responses:
"200":
description: ""content:
application/json:
schema:
type: string"401":
description: Authentication required but none provided."403":
description: Access denied."404":
description: User for UserID not found."406":
description: Content type in Accept header not supported."412":
description: Precondition failed (NetHSM was not *Operational*).description: "Get user info: name and role."security:
- basic: []x-annotation-role:
- Administrator
- Operatorx-annotation-state:
- Operationalx-test-value-UserID: operatorput:
responses:
"201":
description: Successful creation of user."400":
description: Bad request (specified properties are invalid, e.g. weak passphrase)."401":
description: Authentication required but none provided."403":
description: Access denied."406":
description: Content type in Accept header not supported."409":
description: Conflict - user already exists for this user-ID."412":
description: Precondition failed (NetHSM was not *Operational*).description: Create a user on keyfender.requestBody:
content:
application/json:
schema:
type: stringrequired: truesecurity:
- basic: []x-annotation-role:
- Administratorx-annotation-state:
- Operationalx-test-value-UserID: newOperatordelete:
responses:
"204":
description: Successful deletion of user."401":
description: Authentication required but none provided."403":
description: Access denied."404":
description: User not found for this user-ID."406":
description: Content type in Accept header not supported."412":
description: Precondition failed (NetHSM was not *Operational*).description: Delete a user from keyfender.security:
- basic: []x-annotation-role:
- Administratorx-annotation-state:
- Operationalx-test-value-UserID: operatorcomponents:
securitySchemes:
basic:
description: | NetHSM supports Basic Authentication.type: httpscheme: basic
Description
When a Common path parameter is present in a specification, the generator doesn't generate any way to input this parameter in the function (no
path_parameters.pycreated in thepaths/users_user_id/getfolder).Adding the path parameter manually in the method (in the
get:of the yaml file) the correct files and function get created.openapi-json-schema-generator version
Latest docker image (digest 09665ca30ce8)
OpenAPI declaration file content or url
Generation Details
executed
Steps to reproduce
Run the generator, check the files, no path parameter input in the functions.