Skip to content

Resolve #2271: cover validation contract regressions#2311

Merged
ayden94 merged 1 commit into
mainfrom
issue-2271-add-validation-contract-regression-coverage
Jun 24, 2026
Merged

Resolve #2271: cover validation contract regressions#2311
ayden94 merged 1 commit into
mainfrom
issue-2271-add-validation-contract-regression-coverage

Conversation

@ayden94

@ayden94 ayden94 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Add executable regression coverage for documented @fluojs/validation request-boundary contracts.

Linked context: Closes #2271

Changes

  • Cover materialize(instance, Target) accepting an existing DTO instance.
  • Cover materialize() hydrating fields from DTO binding metadata while preserving validation issue source.
  • Cover no-argument @isip() accepting IPv4 and IPv6 and rejecting invalid IP input.

Testing

  • pnpm exec biome check packages/validation/src/validation.test.ts
  • pnpm --filter @fluojs/validation typecheck
  • pnpm --filter @fluojs/validation test

Release impact

  • This PR has consumer-visible release impact and includes a changeset.
  • This PR has no consumer-visible release impact.

Test-only regression coverage for existing documented behavior; no .changeset/*.md file is required.

Public export documentation

No public exports changed.

  • Changed public exports include a source-level summary.
  • Changed exported functions document matching @param / @returns tags where applicable.
  • Source @example blocks and README scenario examples still play complementary roles.

Behavioral contract

This PR preserves existing documented validation behavior by adding regression tests only.

  • No documented behavioral contracts were removed without migration notes.
  • New behavioral contracts are documented in the affected package README.
  • Intentional limitations are explicitly stated (not silently removed).
  • Runtime invariants are covered by regression tests.

Platform consistency governance (SSOT)

No platform contract or governance docs changed.

  • SSOT English/Korean mirror structure remains synchronized for changed governance docs.
  • If platform contract docs changed, companion updates include discoverability/docs index, tooling or CI enforcement, and regression-test evidence.
  • Any package README alignment/conformance claims are backed by createPlatformConformanceHarness(...) tests.

@ayden94 ayden94 merged commit 5381b60 into main Jun 24, 2026
10 checks passed
@ayden94 ayden94 deleted the issue-2271-add-validation-contract-regression-coverage branch June 25, 2026 04:06
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.

[audit][area:request-pipeline] Add validation contract regression coverage (priority:p1)

1 participant