Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trestle author headers validation not working properly (investigate) #1508

Open
AleJo2995 opened this issue Feb 7, 2024 · 0 comments
Open

Comments

@AleJo2995
Copy link
Collaborator

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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant