Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion csaf_2.1/prose/edit/src/tests-01-mndtr-15-translator.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
### Translator

It MUST be tested that `/document/source_lang` is present if the value `translator` is used for `/document/publisher/category`.
It MUST be tested that `/document/source_lang` is present and set if the value `translator` is used for `/document/publisher/category`.
A CSAF Validator SHALL differentiate in the error message between the key being present but having no or an empty value and
not being present at all.

The relevant path for this test is:

Expand All @@ -24,3 +26,6 @@ The relevant path for this test is:
```

> The required element `source_lang` is missing.

> A tool MAY add the key as a quick fix.
> In such case, the value still needs to be set - either manually or by other means from the tool, e.g. through a given configuration.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
### Missing Document Language

It MUST be tested that the document language member is present.
It MUST be tested that the document language member is present and set.
A CSAF Validator SHALL differentiate in the error message between the key being present but having no or an empty value and
not being present at all.

The relevant path for this test is:

Expand All @@ -27,3 +29,6 @@ The relevant path for this test is:
```

> The document language is not defined.

> A tool MAY add the key as a quick fix.
> In such case, the value still needs to be set - either manually or by other means from the tool, e.g. through a given configuration.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
### Missing License Expression

It MUST be tested that the license expression is present and set.
A CSAF Validator SHALL differentiate in the error message between the key being present but having no or an empty value and
not being present at all.

The relevant path for this test is:

Expand All @@ -22,3 +24,6 @@ The relevant path for this test is:
```

> The license expression is not defined.

> A tool MAY add the key as a quick fix.
> In such case, the value still needs to be set - either manually or by other means from the tool, e.g. through a given configuration.
Loading