Skip to content

Track rc4 codegen follow-ups from Argus review #907

Description

@bokelley

Follow-ups from Argus review on PR #906. These were non-blocking for the rc4 schema update, but should be tracked before the next schema regen that introduces named open-payload classes.

  • Extend scripts/post_generate_fixes.py _set_class_extra_allow to handle compact model_config = ConfigDict(extra=...) forms and add a unit test for compact extra='forbid' -> extra='allow'.
  • Harden _ensure_configdict_import for files without an existing from pydantic import ... line.
  • Rework _open_payload_class_names title-less root fallback so it cannot target the first enum in a multi-class generated file.
  • Revisit tests/test_extra_policy.py::_schema_allows_extra handling of x-adcp-open-payload: false; either leave it unhandled until the spec lands or fail CI if source schemas set it.
  • Document the rc4 verify_brand_claim(s) success response change where signed_response is now required.
  • Consider stabilizing or documenting PricingCurrency, which is codegen-derived from an inline schema.
  • Improve SCHEMA_DELTAS.md output for human-readable rc.2 -> rc.4 changes instead of reporting only "No field-shape changes detected."

Source: PR #906 Argus review, submitted 2026-05-30.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions