Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML clients have Apache 2.0 license URL as default #1298

Open
maloewe-ona opened this issue Jul 22, 2024 · 0 comments
Open

HTML clients have Apache 2.0 license URL as default #1298

maloewe-ona opened this issue Jul 22, 2024 · 0 comments

Comments

@maloewe-ona
Copy link

Relates to #140

It looks like the "html" and "html2" client generators use the Apache 2.0 license URL as default if the OpenAPI document does not specify a license:

additionalProperties.put("licenseUrl", "http://apache.org/licenses/LICENSE-2.0.html");

additionalProperties.put("licenseUrl", "http://apache.org/licenses/LICENSE-2.0.html");

This is problematic because it is not clear in the generated HTML documentation what this license applies to, and maybe the developer who publishes the documentation for their API does not want to provide the documentation under that license.

It would be best if this default license URL was omitted, and license information was only shown in case a license is explicitly specified.

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

No branches or pull requests

1 participant