FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • ✨ New! Try the OpenAPI Doctor ✨ The OpenAPI Doctor

    infoLicenseURLSPDX


    infoLicenseURLSPDX will check a specification to ensure that either a url or identifier is defined in the license object, but not both.

    Example ruleset configuration

    info-license-spdx:
      description: "Check license object for URL or identifier, but not both"
      type: "validation"
      recommended: true
      severity: "error"
      given: "$"
      then:
        function: "infoLicenseURLSPDX"
    

    The function is used by the info-license-spdx Rule


    View Function Source