Skip to content

Harden schema-pointer generator follow-ups #151

Description

@bokelley

Follow-up from PR #150 after adding schema-pointer generation for media-buy helper types.

Non-blocking improvements:

  • Make generate.py resolve schema refs relative to the script directory instead of cwd, matching lint.py. Today the documented invocation is cd adcp/schemas && python3 generate.py, but a future test harness from repo root would silently downgrade refs to any.
  • Add TypeError to schema pointer/ref resolution catch tuples in generate.py and lint.py, so pointer walks into scalar values report clean drift errors instead of tracebacks.
  • Document or normalize the INLINE_TYPE_HINTS convention for pointer-prefixed hints such as *DeliveryAggregatedTotals.
  • Consider extracting shared JSON Pointer/schema-spec helpers once there is a third consumer.
  • Add a Go round-trip test for populated MediaBuyDelivery / PackageDelivery values.
  • Sweep MIGRATING.md for the full cascade of any to typed narrowings unlocked by primitive $ref passthrough, including GetProductsRequest.TimeBudget, CreateMediaBuyRequest.StartTime, DeliveryTotals.ReachUnit, and typed delivery response fields.

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