Schema¶
Neksus JobSpec v0.4.x uses schema_version: 1 with component-based composition.
Required fields¶
schema_version: 1id: slug stringpage: objectjob: objectcomponents: non-empty list
Optional:
- campaign
- rendering
Key nested fields¶
job:
title: string
intro: string | null
apply:
method: email | external_url | ats_url | custom | agent_ready
email: string | null
url: string | null
job_reference: string | null
campaign:
starts_at: YYYY-MM-DD | null
expires_at: YYYY-MM-DD | null
status: draft | active | expired | closed | null
Validation behavior¶
- Unknown fields are rejected.
- Unknown component types/variants are rejected.
- Duplicate component IDs are rejected.
page.component_ordermust include all component IDs exactly once if set.campaign.expires_atmust be >=campaign.starts_atwhen both are set.- apply methods enforce method-specific required fields.
Related commands¶
neksus-jobspec spec schema --output schemas/jobspec.v1.json
neksus-jobspec spec validate <path>
neksus-jobspec spec lint <path>
See Model Reference for model-level details.