Skip to content

HTML clients have Apache 2.0 license URL as default #1298

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions