Replies: 2 comments
-
Hi @GGBeer, The external REFS feature looks like a nice addition! Let's integrate your changes but do so in a staged way: I noticed that your branch contains several changes which seem to be not necessarily related:
I suggest you to open the changes 1, 2, and 3 as separate Pull Requests and I will trivially merge the 1 and 2. The changeset 3 should become more focused on your actual change. I guess you have figured this out but just a reminder that there is a small guide: https://strictdoc.readthedocs.io/en/latest/strictdoc-6-contributing.html. You definitely want to add at least an integration test for the new grammar aspect around here: Your change looks almost mergeable but please get ready to address some minor code review changes after you open the distilled PR after the point 3. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Some additional thoughts about the ExternalReference (type-value) items. Defining SDoc encodings for (Externa)l References.
The other SDoc Reference variants could also be extended using the FORMAT field:
The rendering of Bibliography/Reference entries in SDoc is another subject. OK, lets start with the simple STRING variant ;-) Thx, |
Beta Was this translation helpful? Give feedback.
-
In my projects I often have the need to add references to external documents in the Requirement items, which set technical and/or regulatory boundaries for a project, e.g. must use crypto XYZ as defined by NIST, should implement TLS 1.3 as defined by RFC-8446, only ISO-15408 Common-Criteria certified products should be used, etc.
The requirement's statement and rationale should detail which specific item/section of such an ext. reference is to be fulfilled.
Currently this is handled by adding a simple custom grammar multistring field "EXT_REFS".
As usual, these external references should be collected in a list detailing the exact referenced items and its version to be applied.
Having different versions of a referenced item in this list should be avoided.
I am already working on a feature to extend the "REFS" field with an "External" variant.
While doing this, I noticed that the Custom GRAMMAR does not support a definition type for a "REFS" field matching the standard Parent-Reference and File-Reference fields.
i.e. the Custom GRAMMAR and grammar.py/type_system.py parts defining a GrammarElementFieldTypeValue TYPE and its subelements, which would allow to add the following to the GRAMMAR section:
which then would allow to do something like this in a REQUIREMENT:
My suggestion for rendering the external refs:
Would this feature be of interest to you?
Just have a look on my GrammarElementField-TypeValue branch
Thx,
Guus
Beta Was this translation helpful? Give feedback.
All reactions