Schema Types Reference
Complete reference for schema types: object, scalar, enum, and union schemas.
NeoArc supports several schema types for different data modelling scenarios.
Schema Types Overview
| Type | Description | Use Cases |
|---|---|---|
| Object | Complex schema with multiple named fields | Entity definitions, request/response bodies |
| Scalar | Single-field schema for atomic values | Strongly-typed primitives, validated IDs |
| Enum | Named list of enumeration values | Status codes, type discriminators |
| Union | Composite schema combining multiple schemas | Polymorphic responses, discriminated unions |
Object Schema
Complex schema with multiple named fields.
Scalar Schema
Single-field schema for atomic values.
Enum Schema
Named list of enumeration values.
Union Schema
Composite schema combining multiple schemas.
| Mode | Description |
|---|---|
| anyOf | Validates if any referenced schema matches |
| oneOf | Validates if exactly one referenced schema matches |
| allOf | Validates if all referenced schemas match |
Schema Inheritance
Object schemas support inheritance for field reuse.
| Feature | Description |
|---|---|
| extends | Array of parent schema paths |
| Multiple inheritance | Extend from multiple parent schemas |
| Additive fields | Child schema accumulates all parent fields |
| Lineage overrides | Override inherited field lineage mappings |