compliance-trestle icon indicating copy to clipboard operation
compliance-trestle copied to clipboard

Trestle author headers validation not working properly (investigate)

Open AleJo2995 opened this issue 1 year ago • 0 comments

Describe the bug

While running trestle author headers validation, it seems that the validate command is using x-trestle-template-version field to validate the headers against the header template under global when using -g parameter. That is ok if we only need to validate headers and seems to be working, but it seems to be inconsistent. What if I need to validate both header and body and the header needs to be in a different version than the current template of the document has.

e.g. template 1 points to header 1.1.0. Once i create a document out of it, I need that the header now points to another version of the header. Should I need to switch the header-version field or x-trestle-template-version? Here comes the dilemma we need to investigate on.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots / Logs.

If applicable, add screenshots to help explain your problem.

Environment

  • OS: [e.g. iOS]
  • Python version:
  • Installed packages:

AleJo2995 avatar Feb 07 '24 17:02 AleJo2995