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
Describe the bug
Since b719316, I see a lot of files and classes created prefixed with componentschemas_ and Componentsschema, which doesn't seem normal to me.
To Reproduce
Run openapi-python-client update --config=generator/config.yaml --path=generator/openapi.yaml && git status on sftpgo-client with openapi-python-client at b719316.
Expected behavior
Not this:
Untracked files:
(use "git add <file>..." to include in what will be committed)
sftpgo_client/base/models/componentsschemas_admin_status.py
sftpgo_client/base/models/componentsschemas_azure_blob_fs_config_access_tier.py
sftpgo_client/base/models/componentsschemas_connection_status_protocol.py
sftpgo_client/base/models/componentsschemas_filesystem_config_provider.py
sftpgo_client/base/models/componentsschemas_ftpd_binding_tls_mode.py
sftpgo_client/base/models/componentsschemas_gcs_config_automatic_credentials.py
sftpgo_client/base/models/componentsschemas_secret_status.py
sftpgo_client/base/models/componentsschemas_services_status_defender.py
sftpgo_client/base/models/componentsschemas_transfer_operation_type.py
sftpgo_client/base/models/componentsschemas_user_filters_tls_username.py
sftpgo_client/base/models/componentsschemas_user_permissions.py
sftpgo_client/base/models/componentsschemas_user_status.py
Good catch! I've created a branch here which replicates the bug in our end-to-end tests. Looks like the auto-naming using parent class + property name is using the ref to the parent instead of the generated class name... whoops! 😬
Describe the bug
Since b719316, I see a lot of files and classes created prefixed with
componentschemas_
andComponentsschema
, which doesn't seem normal to me.To Reproduce
Run
openapi-python-client update --config=generator/config.yaml --path=generator/openapi.yaml && git status
on sftpgo-client with openapi-python-client at b719316.Expected behavior
Not this:
OpenAPI Spec File
https://github.com/ramnes/sftpgo-client/blob/5abdfe1ae486e1b16d56b72ac52fe20e9a418bf7/generator/openapi.yaml
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: