fix(x402): expose capability output_schema in catalog - #409
Open
epistemedeus wants to merge 1 commit into
Open
Conversation
GET /x402/catalog omitted capability output_schema after PR strale-io#402 declared the paid-api-preflight contract. The cache already held the seller-owned schema and GET /v1/capabilities already projected it, so a credential-free buyer could not inspect the output contract before authorization. Project capabilities.outputSchema as-is. Solutions have no output-schema column; those entries stay without an invented contract. Signed-off-by: epistemedeus <epistemedeus@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
output_schemathrough thecredential-free
GET /x402/catalogresponseauthoritative output-schema column
PR #402 added a strict output contract for
paid-api-preflight, but the x402catalog transformation still projected only
input_schema. This follow-upkeeps the catalog aligned with the already-public
/v1/capabilitiessurface soa buyer can inspect the declared output contract before authorization.
No request handling, price, payment, facilitator, wallet, settlement,
execution, or deployment behavior changes.
Validation
All passed.
Signed-off-by: epistemedeus epistemedeus@gmail.com