IdentityTrustRequest identity.trust-request@1
Generated at from
openvibe-contracts v0.419.0 and
openvibe-sdk v0.161.0.
- Version
- 1.0.0
- Owner
- network
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/identity/trust-request.v1.json
identity.trust-request@1: GET /api/v1/trust/{subject} names the account or guest subject in the path; GET /api/v1/me/trust takes no subject and derives it from the caller's own token.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: guest
{
"subject": "gst_01JAB2C3D4E5F6G7H8J9K0MNP1"
}Valid: me
{}Rejected: malformed-subject
{
"subject": "anon_101"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('identity.trust-request@1', value); // { valid, errors: [{ path, message }] }