Skip to content

Conversation

yuji38kwmt
Copy link
Collaborator

@yuji38kwmt yuji38kwmt commented Jan 20, 2025

変更前はOpenAPI Generator v4.3で生成していました。
利用しているOpenAPI Generator v4.3は2020年リリースで少し古いので、バージョンアップしました。

modelsの生成はv4.3のままです。

変更箇所

以下のmustacheファイルで生成している部分が、v7ではカンマ区切りでなく連結されました。

{{#hasAuthMethods}}
        authorizations: {{#authMethods}}{{name}}{{#hasMore}}, {{/hasMore}}{{/authMethods}}
{{/hasAuthMethods}}

変更前

authorizations: ProjectAccepter, ProjectOwner

変更後

authorizations: ProjectAccepterProjectOwner

修正方法が分からなかったのと、DocStringで大きな問題はないため、このまま採用します。

@yuji38kwmt yuji38kwmt changed the title `generate generated_api.py, generated_api2.pyをOpenAPI Generator v7で生成するようにしました。 Jan 20, 2025
@yuji38kwmt yuji38kwmt merged commit 1558144 into main Jan 20, 2025
8 checks passed
@yuji38kwmt yuji38kwmt deleted the dataclasses branch January 20, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant