Logo
NeoArc Studio

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

Available schema types
TypeDescriptionUse Cases
ObjectComplex schema with multiple named fieldsEntity definitions, request/response bodies
ScalarSingle-field schema for atomic valuesStrongly-typed primitives, validated IDs
EnumNamed list of enumeration valuesStatus codes, type discriminators
UnionComposite schema combining multiple schemasPolymorphic 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.

Union schema modes
ModeDescription
anyOfValidates if any referenced schema matches
oneOfValidates if exactly one referenced schema matches
allOfValidates if all referenced schemas match

Schema Inheritance

Object schemas support inheritance for field reuse.

Inheritance features
FeatureDescription
extendsArray of parent schema paths
Multiple inheritanceExtend from multiple parent schemas
Additive fieldsChild schema accumulates all parent fields
Lineage overridesOverride inherited field lineage mappings

Inheritance Validation