Skip to content

fix: reject unresolved POST and PUT references - #876

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

TommyLemon merged 1 commit into
APIJSON: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

Hold the f*ck up — This prevents an out-of-order write reference from silently skipping the f*ckin' write while the parser returns success.

Validation

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

The motherf*ckin' 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 APIJSON#275
@TommyLemon
TommyLemon merged commit 541751b into APIJSON:master Sep 1, 2026
1 check passed
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

建议:在输入引用赋值顺序错误时给出更明显的提示

2 participants