Skip to content

Commit f57d6de

Browse files
Copilothotlong
andcommitted
Add clarifying comments for naming conventions
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent f1bd2ef commit f57d6de

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

content/prompts/plugin/metadata.prompt.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export const Account = ObjectSchema.create({
159159
compactLayout: ['account_number', 'name', 'type', 'owner'],
160160

161161
fields: {
162+
// Field names must be snake_case (e.g., account_number, annual_revenue)
162163
// AutoNumber field - Unique account identifier
163164
account_number: Field.autonumber({
164165
label: 'Account Number',

content/prompts/zod-compliance.prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ When the user asks for a configuration, simulate this internal validation proces
6060
import { ObjectSchema, Field } from '@objectstack/spec/data';
6161

6262
export const Project = ObjectSchema.create({
63-
name: 'project', // ✅ Validates regex /^[a-z_][a-z0-9_]*$/
63+
name: 'project', // ✅ Validates regex /^[a-z_][a-z0-9_]*$/ (snake_case with numbers allowed after first char)
6464
label: 'Project',
6565
icon: 'folder',
6666

0 commit comments

Comments
 (0)