Constraint
> **Canonical IRI:** `https://schema.beckn.io/Constraint` > **Tags:** common > **Namespace:** https://schema.beckn.io/ > Part of the Beckn Protocol Core Schema
---
Schema definition for Constraint in the Beckn Protocol v2.0.1
Versions
| Version | attributes.yaml | context.jsonld | vocab.jsonld | README |
|---|---|---|---|---|
| **v2.0** | attributes.yaml | context.jsonld | vocab.jsonld | README |
Properties (latest: v2.0)
| Property | Type | Required | Description |
|---|---|---|---|
@context | string (uri) | ✅ | CPD |
@type | string | ✅ | — |
constraintType | string | — | Type of constraint (extensible term) |
id | string | ✅ | Identifier for the constraint |
operator | string | — | Comparator/operator (<=, >=, =, etc.) |
unitCode | string | — | Unit code (e.g., km, min) |
validity | object | — | — |
value | number | — | Constraint value |
Linked Data
| Resource | URL |
|---|---|
| Canonical IRI | https://schema.beckn.io/Constraint |
| JSON Schema (latest) | https://schema.beckn.io/Constraint/2.0 |
| context.jsonld (latest) | https://schema.beckn.io/Constraint/2.0/context.jsonld |
| vocab.jsonld (latest) | https://schema.beckn.io/Constraint/2.0/vocab.jsonld |
| Root context.jsonld | https://schema.beckn.io/context.jsonld |
| Root vocab.jsonld | https://schema.beckn.io/vocab.jsonld |