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

Improve CmpDocument Model Validations #23468

Merged

Conversation

tradesmanhelix
Copy link
Contributor

Resolves Create CMP Document metadata endpoint

Description

  • Validate that vbms_doctype_id is an integer.
  • Improve validation of date_of_receipt to be less lenient in parsing dates and require that they follow yyyy-mm-dd format.

Acceptance Criteria

  • All specs passing

Testing Plan

  1. Run specs for changed/new files:
  • bundle exec rspec spec/models/cmp_document_spec.rb
  • bundle exec rspec spec/models/cmp_mail_packet_spec.rb
  • bundle exec rspec spec/requests/api/v1/cmp_controller_spec.rb

- Validate that vbms_doctype_id is an integer.

- Improve validation of date_of_receipt to be less lenient in
  parsing dates and require that they follow yyyy-mm-dd format.
@zurbergram zurbergram merged commit bda1767 into feature/APPEALS-57449 Nov 12, 2024
7 of 17 checks passed
@zurbergram zurbergram deleted the asmith/APPEALS-59007-validation-improvements branch November 12, 2024 13:45
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

Successfully merging this pull request may close these issues.

2 participants