compliance-trestle
compliance-trestle copied to clipboard
Trestle author headers validation not working properly (investigate)
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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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: