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

Api 12293 remove extra validations #9588

Merged
merged 0 commits into from
Apr 12, 2022

Conversation

stiehlrod
Copy link
Contributor

@stiehlrod stiehlrod commented Apr 7, 2022

Description of change

Look into the date validations across all three appeal types

Original issue(s)

API-12293

Things to Know About This PR

Question posed: can we validate that a date is in the past with the schemas?

Research Findings

It seems that many people have opened issues hoping for this feature, and as far as I can tell, they have all been closed for various reasons. A somewhat recent documentation states that json_)schema allows for time duration as part of the schema, but not a max value for a date.

@stiehlrod stiehlrod added Lighthouse lighthouse appeals Lighthouse API appeals labels Apr 7, 2022
@stiehlrod stiehlrod requested review from a team as code owners April 7, 2022 21:43
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 7, 2022 21:54 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 8, 2022 14:56 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 8, 2022 15:03 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 8, 2022 19:02 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 11, 2022 14:49 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 11, 2022 15:22 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 11, 2022 16:15 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 11, 2022 16:20 Inactive

context 'returns 422 when decison date is not a date' do
let(:error_content) do
{ 'status' => 422, 'detail' => "'banana' did not fit within the defined length limits" }
Copy link
Contributor

@ElleeB ElleeB Apr 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. Seems like the detail should be something like, "'banana' is not a date", or that it didn't match the pattern, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: We're going to create a ticket to look into whether this is the expected detail.

@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 12, 2022 15:54 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 12, 2022 16:11 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-12293-remove-extra-validations/master/master April 12, 2022 16:33 Inactive
@stiehlrod stiehlrod merged commit b83370e into master Apr 12, 2022
@stiehlrod stiehlrod deleted the API-12293-remove-extra-validations branch April 12, 2022 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appeals Lighthouse API appeals Lighthouse lighthouse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants