Skip to content

[Request]: targeted migration hint for the legacy request.body shape (move keys under the method key) #1132

Closed

Description

@jimhoyd

Problem or use case

Every project with a body policy that upgrades past the change hits the old request.body shape: method-keyed body policies now live under a method key such as POST:.

The validator's error and core's error-explanation function give only generic schema advice. Neither says "move these keys under POST:", so every upgrading project has to rediscover the migration.

Proposed behavior and alternatives

When validation sees the legacy request.body shape, it should answer with a targeted migration hint naming:

  • the route;
  • the keys to move;
  • the method key to move them under, with a before/after snippet;
  • a link to the upgrade notes.

Use the same hint in the CLI, MCP validate and the error-explanation function. No automatic rewriting of YAML is requested, and no alias accepting the old shape (there are no external users).


Generated by Claude Code

Activity

  1. added
    enhancement
    ai-first
    on Oct 1, 2026
  2. jimhoyd commented on Oct 1, 2026

    @jimhoyd
    CollaboratorAuthor

    Taking this: Issues [37f079]

  3. added
    in-progress
    on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-firstenhancementin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions