Schema Registry
JSON Schema registry for the NEIR specification format — versioned schemas for validating NAEOS Engineering Intelligence Representation documents.
Overview
The NEIR Schema Registry hosts versioned JSON Schema definitions for the NAEOS Engineering Intelligence Representation (NEIR) specification format. These schemas enable IDE autocompletion, validation, and tooling support for .naeos.yaml and .naeos.json files.
Latest Schema
The current stable schema is v1.
| Version | Schema URL | Status |
|---|---|---|
| v1 | /schemaregistry/v1/neir.json | Stable |
| latest | /schemaregistry/latest.json | Latest stable |
Usage
Editor Integration
Add a $schema field to your NEIR specification file:
# naeos.yaml
$schema: https://naeos.dev/schemaregistry/latest.json
project: my-project
modules:
- name: core
path: ./internal/core
This enables IntelliSense and inline validation in editors like VS Code, JetBrains, and others that support JSON Schema.
CLI Validation
Use the NAEOS CLI to validate a spec against the registry schema:
naeos schema validate spec.yaml
naeos schema validate spec.json --output json
Programmatic Use
Fetch the schema programmatically:
curl -s https://naeos.dev/schemaregistry/latest.json
Versioning
Schema versions follow the NEIR specification version. Backward-incompatible changes to the NEIR model produce a new schema version. Minor additions (new optional fields) are additive within a version.
| NEIR Version | Schema Version | Notes |
|---|---|---|
| 1.x | v1 | Initial stable schema |
Schema Contents
The NEIR JSON Schema defines these top-level sections:
project— Project metadata (name, version, description, license, authors)architecture— Architecture pattern and layersdomain— Domain model with bounded contexts, aggregates, entitiesmodules— Module definitions with paths and packagescomponents— Component catalog with kinds and dependenciesservices— Service definitions with endpoints and portsapis— API specifications with protocols and schemasstorage— Storage backends (SQL, NoSQL, cache, queue, blob)infrastructure— Infrastructure providers and resourcessecurity— Authentication, authorization, encryption, secretsai— AI model integrations, prompts, context bundlesdocumentation— Documentation guides, references, ADRsdeployment— Deployment strategy, environments, scalingtesting— Testing strategy, frameworks, coverage, fixturesmetadata— Spec metadata with version tracking and timestampsgeneration— Code generation configuration