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

Criar validação de errata #691

Open
7 tasks
robertatakenaka opened this issue Aug 21, 2024 · 0 comments
Open
7 tasks

Criar validação de errata #691

robertatakenaka opened this issue Aug 21, 2024 · 0 comments
Assignees

Comments

@robertatakenaka
Copy link
Member

robertatakenaka commented Aug 21, 2024

Descrição da tarefa

Criar validação de errata e de documento corrigido

Subtarefas

  • Crie um módulo errata em validation
  • Crie a classe ErrataValidation
  • No início de cada método de validação deve ser validado se o article-type é correction
  • Deve ter o método validate_related_article, que valida a presença / existência de pelo menos 1 related-article cujo atributo related-article-type="corrected-article". Criar uma resposta para cada related-article deste tipo
  • Crie a classe CorrectedArticleValidation
  • Deve ter o método validate_related_article, que valida a presença / existência de pelo menos 1 related-article cujo atributo related-article-type="correction-forward". Criar uma resposta para cada related-article deste tipo
  • Para cada related-article cujo atributo related-article-type="correction-forward", deve haver uma data em history/date cujo date-type é igual a 'corrected'
<history>
<date date-type="corrected">
<day>12</day>
<month>12</month>
<year>2023</year>
</date>
</history>
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

2 participants