Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,19 @@ This means you can develop and test third-party extensions locally before publis

## How does direction auto-detection work?

**The validator infers direction from payload structure:**
**For self-describing payloads, the validator infers direction from payload structure:**

| Payload has | Detected direction |
| ------------------ | ------------------------------------------------ |
| `ucp.capabilities` | Response |
| `meta.profile` | Request |
| Neither | Error (must specify `--request` or `--response`) |

This applies to both `validate` and `resolve` when the input is a self-describing payload. When resolving a plain schema file, explicit `--request` or `--response` is required.
This applies when `validate` or `resolve` receives a self-describing payload.
When `validate` uses an explicit `--schema`, payload metadata is not required;
if neither direction flag is set, validation defaults to request direction. Pass
`--response` when validating against a response schema. When resolving a plain
schema file, explicit `--request` or `--response` is required.

---

Expand Down
Loading