Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Agents
rushing/laravel-data-schemas
claude-code
cursor
validation
laravel
spatie
json-schema
laravel-data
schema-generation

Converts your Spatie Laravel Data objects into JSON Schema files, preserving validation rules, descriptions, and examples. Useful for AI-powered applications, API documentation, and frontend validation.

Install
php artisan boost:add-skill rushing/laravel-data-schemas

Save this content to: AGENTS.md

> You are in **schemastud/laravel-data-schemas** — generate JSON Schemas from Laravel Data objects with validation attributes.

Converts your Spatie Laravel Data objects into JSON Schema files, preserving validation rules,
descriptions, and examples. Useful for AI-powered applications, API documentation, and frontend
validation.

## A declared Data class is the input, always

This package projects a Data class into a JSON Schema. It never infers a shape from an array, a
docblock, or a runtime sample — if a shape is not declared, there is nothing here to generate from.

Consumers routinely build a stricter rule on top of that. A CMS runtime, for instance, may require
that *every* boundary-crossing shape — HTTP request and response bodies, tool inputs and outputs,
event payloads — be a declared Data class rather than an inline array, so one declaration drives the
schema, the API docs, and the generated client types together. Enforcing that is the consumer's job.

The obligation here is narrower and absolute: whatever Data class arrives projects **faithfully** —
validation rules, descriptions, examples, nullability and all. A consumer's doctrine is only worth
having if the projection under it is exact.

## Vendored family-package conventions

Any repo that vendors another family repo's code (composer `vendor/<vendor>/<pkg>/`, npm
`node_modules/<vendor>/<pkg>/`) checks that vendored repo's own `AGENTS.md` for conventions it
ships with itself before editing through into it.

You are in schemastud/laravel-data-schemas — generate JSON Schemas from Laravel Data objects with validation attributes.

Converts your Spatie Laravel Data objects into JSON Schema files, preserving validation rules, descriptions, and examples. Useful for AI-powered applications, API documentation, and frontend validation.

A declared Data class is the input, always

This package projects a Data class into a JSON Schema. It never infers a shape from an array, a docblock, or a runtime sample — if a shape is not declared, there is nothing here to generate from.

Consumers routinely build a stricter rule on top of that. A CMS runtime, for instance, may require that every boundary-crossing shape — HTTP request and response bodies, tool inputs and outputs, event payloads — be a declared Data class rather than an inline array, so one declaration drives the schema, the API docs, and the generated client types together. Enforcing that is the consumer's job.

The obligation here is narrower and absolute: whatever Data class arrives projects faithfully — validation rules, descriptions, examples, nullability and all. A consumer's doctrine is only worth having if the projection under it is exact.

Vendored family-package conventions

Any repo that vendors another family repo's code (composer vendor/<vendor>/<pkg>/, npm node_modules/<vendor>/<pkg>/) checks that vendored repo's own AGENTS.md for conventions it ships with itself before editing through into it.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings