Add appraisal API request and response schema fixtures - #91
Merged
karagozemin merged 1 commit intoJun 29, 2026
Merged
Conversation
|
@Lacastar2000 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
VeronicDev
added a commit
to VeronicDev/sub-rosa-drips
that referenced
this pull request
Jul 1, 2026
Create docs/POST_DEMO_EVIDENCE_PACK.md — a reusable fill-in-the-blanks template for reviewer and investor follow-up after SCF review calls or investor demos. - Demo metadata (date, environment, audience) - Live URLs (frontend, coordinator health, API, Prometheus) - Smart contract addresses with block explorer links (from deployments.testnet.json) - ETH->XLM and XLM->ETH order lifecycle tx tables - CI run links and 49-test coverage summary - All four refund mechanisms with evidence placeholders - What changed since last review (delta table + first-review note) - Pre-filled known limitations (6 items) - Next milestone ask with funding placeholder - 12-item reviewer/investor follow-up checklist Also link to the template from the README documentation table.
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.
Closes #74
Title
test: add appraisal API request/response schema fixtures and validation coverage
Summary
This PR strengthens the appraisal API integration boundary by introducing fixture-based schema validation tests for both requests and responses.
Representative fixtures are added to ensure valid payloads remain stable for integrators while malformed payloads are rejected with consistent, predictable validation errors. This provides a lightweight regression suite for future API changes without affecting scoring behavior or external dependencies.
Motivation
The appraisal API serves as an integration point for external clients. Changes to request or response schemas can inadvertently break downstream consumers if not caught early.
This change introduces version-controlled fixtures and validation tests to:
Scope
Test Fixtures
Added representative fixtures covering:
Requests
Responses
Fixtures are intentionally compact to keep the test suite fast and maintainable.
Validation Tests
Extended the existing appraisal API validation layer with tests that verify:
Documentation
Added example request and response fixtures to the project documentation (or package README) to provide reference payloads for API consumers.
Guardrails
This implementation intentionally does not:
Tests
Executed:
npm run testAdded coverage for:
Acceptance Criteria
Notes
This change focuses on improving API compatibility and regression protection. It does not alter appraisal logic, scoring behavior, or external integrations. Future schema changes should update the fixture set and associated validation tests to ensure backward compatibility or intentional validation failures with clear error messaging.