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.
Follow-up from PR #150 after adding schema-pointer generation for media-buy helper types.
Non-blocking improvements:
generate.pyresolve schema refs relative to the script directory instead ofcwd, matchinglint.py. Today the documented invocation iscd adcp/schemas && python3 generate.py, but a future test harness from repo root would silently downgrade refs toany.TypeErrorto schema pointer/ref resolution catch tuples ingenerate.pyandlint.py, so pointer walks into scalar values report clean drift errors instead of tracebacks.INLINE_TYPE_HINTSconvention for pointer-prefixed hints such as*DeliveryAggregatedTotals.MediaBuyDelivery/PackageDeliveryvalues.MIGRATING.mdfor the full cascade ofanyto typed narrowings unlocked by primitive$refpassthrough, includingGetProductsRequest.TimeBudget,CreateMediaBuyRequest.StartTime,DeliveryTotals.ReachUnit, and typed delivery response fields.