strictdoc icon indicating copy to clipboard operation
strictdoc copied to clipboard

Form validation for grammar fields that are marked as required

Open mettta opened this issue 2 years ago • 1 comments

Currently, it is possible to save a required field with an empty value because there is no corresponding validation.

The right behaviour is to prevent required fields from being saved when they are empty.

error: could not parse file: /Users/mettta/Projects/dev/strictdoc/docs/strictdoc_20_requirements.sdoc.

Semantic error: Wrong field order for requirement: [UID, REFS, STATEMENT]
Location: /Users/mettta/Projects/dev/strictdoc/docs/strictdoc_20_requirements.sdoc:37:1
Hint: Problematic field: STATEMENT. Compare with the document grammar: [UID, REFS, TITLE, STATEMENT, RATIONALE, COMMENT] for type: REQUIREMENT

mettta avatar Mar 12 '23 17:03 mettta

This ticket can be done together with https://github.com/strictdoc-project/strictdoc/issues/1076 and https://github.com/strictdoc-project/strictdoc/issues/1537.

stanislaw avatar Sep 08 '23 15:09 stanislaw