swagger-api/swagger-codegen-generators

HTML clients have Apache 2.0 license URL as default

Opened this issue · 0 comments

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.