From ea176558fc14f46096e45f58cd858062acbcd150 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 May 2020 10:51:43 +0200 Subject: spec: Add dedicated constraint items --- spec/spec/constraint-role.yml | 23 +++++++++++++++++++++++ spec/spec/constraint.yml | 24 ++++++++++++++++++------ 2 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 spec/spec/constraint-role.yml (limited to 'spec/spec') diff --git a/spec/spec/constraint-role.yml b/spec/spec/constraint-role.yml new file mode 100644 index 00000000..c57cf17f --- /dev/null +++ b/spec/spec/constraint-role.yml @@ -0,0 +1,23 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: spec-member + uid: root +- role: spec-refinement + spec-key: role + spec-value: constraint + uid: link +spec-description: null +spec-example: null +spec-info: + dict: + attributes: {} + description: | + It defines the constraint role of links. The link target shall be a + constraint. + required-attributes: all +spec-name: Constraint Link Role +spec-type: constraint-role +type: spec diff --git a/spec/spec/constraint.yml b/spec/spec/constraint.yml index 446c97f8..aa00f51f 100644 --- a/spec/spec/constraint.yml +++ b/spec/spec/constraint.yml @@ -6,18 +6,30 @@ links: - role: spec-member uid: root - role: spec-refinement - spec-key: role + spec-key: type spec-value: constraint - uid: link + uid: root spec-description: null spec-example: null spec-info: dict: - attributes: {} + attributes: + rationale: + description: | + If the value is present, then it shall state the rationale or + justification of the constraint. + spec-type: optional-str + scope: + description: | + It shall be the scope of the constraint. + spec-type: str + text: + description: | + It shall state the constraint. + spec-type: requirement-text description: | - It defines the constraint role of links. The link target shall be a - constraint. + This set of attributes specifies a constraint. required-attributes: all -spec-name: Constraint Link Role +spec-name: Constraint Item Type spec-type: constraint type: spec -- cgit v1.2.3