WorkApplicationResult work.application-result@1

Generated at from openvibe-contracts v0.150.0 and openvibe-sdk v0.44.0.

Version
1.0.0
Owner
work
Visibility
public
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/work/application-result.v1.json

work.application-result@1: what work.application.manage answers: one application, or a page of them (GET /api/v1/me/applications, newest first, ?status= and ?cursor=; `next` is the next page's cursor or null). DELETE answers 204 with no body.

Fields

This schema has no named fields.

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: page
{
  "applications": [
    {
      "id": "wap_01JQ8Z0000000000000000000A",
      "subject_id": "user:usr_01JQ8Z0000000000000000000B",
      "listing_id": null,
      "title": "Backend Engineer",
      "company": "Northwind",
      "url": "https://northwind.example/jobs/1",
      "status": "applied",
      "notes": "",
      "applied_at": "2026-10-12T05:00:00.000Z",
      "next_step": "",
      "next_step_at": null,
      "actor_task_id": null,
      "assists": 0,
      "created_at": "2026-10-12T05:00:00.000Z",
      "updated_at": "2026-10-12T05:00:00.000Z"
    }
  ],
  "next": null,
  "count": 1
}
Rejected: missing-count
{
  "applications": [
    {
      "id": "wap_01JQ8Z0000000000000000000A",
      "subject_id": "user:usr_01JQ8Z0000000000000000000B",
      "listing_id": null,
      "title": "Backend Engineer",
      "company": "Northwind",
      "url": "https://northwind.example/jobs/1",
      "status": "applied",
      "notes": "",
      "applied_at": "2026-10-12T05:00:00.000Z",
      "next_step": "",
      "next_step_at": null,
      "actor_task_id": null,
      "assists": 0,
      "created_at": "2026-10-12T05:00:00.000Z",
      "updated_at": "2026-10-12T05:00:00.000Z"
    }
  ],
  "next": null
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('work.application-result@1', value);   // { valid, errors: [{ path, message }] }