Repository navigation
test(docs): bind task validation errors to current validators - #1101
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a developer follows the task reference, POST currently describes an integer
errorplusmessage, and PATCH requiresmissing_fieldseven for malformed JSON. Bind the corrected shared 400 documentation to the real POST/PATCH validators with synthetic malformed-JSON and wrong-type examples, pre-authentication/header checks, and a valid title-only PATCH control.This companion changes the published fixture, regression test and contributor notes. It does not change API behavior. Marketing #223 authors the two corrected response definitions and examples; its source pin must follow the actual accepted API merge. Related: recoupable/mono#318 and recoupable/mono#360. The separate schedule-syntax implementation in #1100 is outside this change.
Validation: 225 contract tests; response-constructor type check; repository lint and scoped formatting pass. The full-project type check still reports exactly the same 211 inherited diagnostics; no new diagnostic was introduced. Tests use actual validators with mocked authentication and fenced networking; no stored task or hosted schedule is exercised.
Summary by cubic
Binds the published POST/PATCH task 400 error documentation to the real request validators. The docs previously described an integer
errorplusmessage, and PATCH requiredmissing_fieldseven for malformed JSON; the corrected shared schema returns a stringerrorand omitsmissing_fieldsfor invalid JSON. No API behavior changes.publishedTaskValidation.test.tscomparing the published schemas and examples against the actual validators with malformed-JSON and wrong-schedule-type bodies, pre-auth and header checks, and a valid title-only PATCH control.Written for commit e669682. Summary will update on new commits.