RunFillOutcome run.fill-outcome@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- run
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/run/fill-outcome.v1.json
Credential-free result of a blind sign-in fill.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
request_id | string | yes |
| |
outcome | enum | yes |
| |
reason | enum | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: example
{
"request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
"outcome": "ok",
"reason": null
}Rejected: credential
{
"request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
"outcome": "ok",
"username": "alice",
"password": "must-not-be-here"
}Rejected: free-text-reason
{
"request_id": "fr_01JD2C3D4E5F6G7H8J9K0MNPQR",
"outcome": "failed",
"reason": "password entry failed because the page said: please retry"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('run.fill-outcome@1', value); // { valid, errors: [{ path, message }] }