Skip to content

fix: reject unresolved POST and PUT references - #876

Merged
TommyLemon merged 1 commit into
Tencent:masterfrom
henriquejsza:fix/275-unresolved-write-references
Sep 1, 2026
Merged

fix: reject unresolved POST and PUT references#876
TommyLemon merged 1 commit into
Tencent:masterfrom
henriquejsza:fix/275-unresolved-write-references

Conversation

@henriquejsza

Copy link
Copy Markdown
Contributor

Summary

  • reject unresolved string references in effective POST/PUT objects with UnsupportedOperationException
  • keep existing GET, DELETE, and resolved-reference behavior
  • add DB-free regression coverage, including CRUD@post dispatch

This prevents an out-of-order write reference from silently skipping the write while the parser returns success.

Validation

  • mvn -Dtest=AbstractObjectParserReferenceTest test — 8 passed
  • mvn clean verify — 36 passed

The core APIJSONORM path was tested; the APIJSON-Demo /register endpoint was not retested.

Fixes #275

Fail fast when a string reference cannot be resolved for an effective POST or PUT object. This prevents write requests from silently invalidating or skipping the object and returning a successful response.

Add DB-free regression coverage for table and non-table references, CRUD method directives, preserved GET and DELETE behavior, and resolved references.

closes Tencent#275
@TommyLemon
TommyLemon merged commit 541751b into Tencent:master Sep 1, 2026
1 check passed
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