top of page

Should an Integration Reject a Field It Does Not Recognize?

Oct 23
3 min read
Decide what unknown means: Identify the contract boundary; Choose reject or allow rules; Test old and new clients.

A provider adds an optional field to an API response. One client continues working; another rejects the entire response. Elsewhere, a misspelled field in a request is silently ignored, so the sender believes a change was applied when it was not.


Both situations involve an unknown property, but they need not have the same policy. A response consumer may need compatibility with additive changes, while a command endpoint may need to catch mistakes early. Define the boundary before choosing strictness.


Distinguish requests from responses


List the messages your application sends and receives. For each one, identify who owns the schema, which fields drive behavior and what an unexpected property could mean. Avoid one global setting that treats every message identically without review.


The JSON Schema object reference explains that listing properties does not automatically reject additional properties or make listed properties required. The additionalProperties and required rules address different questions.


This distinction matters in acceptance tests. A schema can recognize the type of a field when present while still allowing it to be absent. It can also validate known fields while permitting other fields. Read the actual schema rather than inferring its policy from an example payload.


Choose a deliberate unknown-field policy


Possible policies include rejecting unknown fields, ignoring them, preserving them without acting on them, or allowing them only in a designated extension object. Each choice has consequences for compatibility and error discovery.


For a command, silently ignoring a misspelled instruction can produce a misleading success. For a response, rejecting a harmless new field can create an unnecessary outage. State why the selected policy fits the particular integration point.


Never let an unknown field acquire operational meaning merely because it resembles an internal property. The application should map permitted inputs explicitly and enforce authorization independently of the message's shape.


Illustrative update request


A fictional task API accepts reviewerId and dueDate. A test client sends reveiwerId, with two letters transposed. Under the chosen strict request policy, the service rejects the unknown property and reports the expected field name without applying a partial change.


The same team's response parser accepts an added displayHint field that it does not use. It continues validating the required task identifier and status. The two policies are intentionally different because the messages serve different roles.


The fixture also includes an unknown property inside a nested object. A top-level rule should not be assumed to govern every nested boundary automatically. The reviewer checks the schema and behavior at each relevant level.


Make errors actionable


When rejecting a property, identify the location and reason in a stable error format. Do not return the whole submitted object if it may contain sensitive information. A developer usually needs the path and rule, not every value.


Decide whether a message is rejected atomically. If the service accepts some fields and ignores others, its response must make the partial outcome unambiguous. A generic success response should not imply that every requested change occurred.


Test empty objects, missing required properties, unexpected types and unexpected properties as separate cases. They represent different contract failures and may need different remediation.


Review schema evolution with consumers


Before adding or removing fields, identify consumers that enforce strict response schemas. Before tightening request validation, identify senders relying on previously ignored fields. Compatibility is a property of the interacting versions, not just the new schema in isolation.


Use the API upgrade evidence plan to record supported version combinations and the transition path. A field described as optional by the provider can still break a consumer with a different interpretation.


Keep the schema dialect and validator version with the test result. Features used for composed or extended schemas may have version-specific behavior that a reviewer needs to reproduce.


Accept behavior at the boundary


Maintain fixtures for a valid message, a spelling mistake, an optional addition and a nested unknown property. Verify both the response and the resulting business state.


The goal is predictable handling, not maximum strictness everywhere. A good contract catches meaningful mistakes while permitting the changes the integration explicitly supports.


FutureOS is in prelaunch. Use this guide to prepare a concrete project discussion, and read the published introduction for the current project context.



Prepared with AI assistance for the FutureOS editorial series. Primary sources checked on October 23, 2026. Examples are illustrative; this article does not announce an available FutureOS feature or an independently reviewed assessment.

Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page