FAQ

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

    oasDuplicationDescription


    oasDescriptionDuplication will check each description found in the specification and creates a hash of it.

    Hashes are then checked for equality, if the hashes match, the content is identical and a violation is triggered.

    Example ruleset configuration

    description-duplication:
      description: "Check descriptions for duplicates"
      type: "validation"
      recommended: true
      severity: "info"
      given: "$"
      then:
        function: "oasDescriptionDuplication"
    

    The function is used by the description-duplication Rule


    View Function Source