Follow-up from adcontextprotocol/adcp#5178.
The schema PR adds x-adcp-open-payload to mark intentionally open JSON payload surfaces and adds schema-authoring validation that the keyword is boolean. The Python SDK generator path should consume this intentionally rather than relying on generic additionalProperties heuristics.
Expected work:
- Add a codegen/post-processing rule for
x-adcp-open-payload: true so datamodel-code-generator output preserves the intended open payload model.
- Ensure
x-adcp-open-payload: false does not collapse structured-but-extension-tolerant fields into generic payload types.
- Add a smoke test using at least one annotated field from the 3.1 schema set.
Rationale: datamodel-code-generator will ignore this custom keyword by default, so without explicit SDK handling the annotation is documentation only for Python consumers.
Follow-up from adcontextprotocol/adcp#5178.
The schema PR adds
x-adcp-open-payloadto mark intentionally open JSON payload surfaces and adds schema-authoring validation that the keyword is boolean. The Python SDK generator path should consume this intentionally rather than relying on genericadditionalPropertiesheuristics.Expected work:
x-adcp-open-payload: trueso datamodel-code-generator output preserves the intended open payload model.x-adcp-open-payload: falsedoes not collapse structured-but-extension-tolerant fields into generic payload types.Rationale: datamodel-code-generator will ignore this custom keyword by default, so without explicit SDK handling the annotation is documentation only for Python consumers.