Understanding Requirement Diagrams
In this section, we will cover the different components of a requirement diagram. You will learn how to define a requirement and its attributes in mermaid code. You will also learn how to define an element that represents an external document reference or entity and how to link them to a requirement. You will learn about different types of relationships in a requirement diagram, and how to declare those in Mermaid.
The first step here, as in any other Mermaid diagram code, is to provide the diagram identifier keyword, requirementDiagram
, which tells the Mermaid parser that you want to draw a requirement diagram. The definition of all other components will come after this keyword only. Now let's start going through requirement definitions and the possible types of requirements.
Defining Requirements
Requirements are the building blocks of the requirement diagram. They are represented graphically by a rectangular box, which showcases their...