ObjectStack Zod Validation Schemas - Runtime validation for ObjectStack configurations
npm install @objectstack/spec-schemas

> ObjectStack Zod Validation Schemas
This package contains Zod schemas for validating ObjectStack configurations and manifests.
Guiding Principle: "Strict Types, No Logic"
This package contains:
- ✅ Zod Schemas (Validation rules with type inference)
This package does NOT contain:
- ❌ Database connections
- ❌ UI components
- ❌ Runtime business logic
``bash`
pnpm install @objectstack/spec-schemas
- ManifestSchema - Zod schema for package manifestsMenuItemSchema
- - Zod schema for menu itemsObjectStackManifest
- - TypeScript type for manifestsMenuItem
- - TypeScript type for menu items
`typescript
import { ManifestSchema, type ObjectStackManifest } from '@objectstack/spec-schemas';
const manifest: ObjectStackManifest = {
id: 'com.example.myapp',
version: '1.0.0',
type: 'plugin',
name: 'My App',
permissions: ['system.user.read']
};
// Validate with Zod
ManifestSchema.parse(manifest);
``
MIT