Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

[Skip CI] Fix CLAUDE instructions for API v3 serializers

Damian Legawiec2e1b32dcbf99
diff --git a/api/CLAUDE.md b/api/CLAUDE.md
index 626ad32066..10662cb38a 100644
--- a/api/CLAUDE.md
+++ b/api/CLAUDE.md
@@ -63,7 +63,7 @@ end
### Typelizer DSL
-- `typelize_from Model` - Connect serializer to ActiveRecord model for automatic type inference
+- Don't use `typelize_from` for serializers, please use `typelize` instead for each attribute
- `typelize attr: :type` - Define types for computed/delegated attributes not on the model
- Type formats: `:string`, `:boolean`, `:number`, `'string | null'`, `'string[]'`, `'Record<string, unknown>'`