Skip to content

Commit dad35a2

Browse files
committed
fix: use official schema URL and remove redundant $schema injection
1 parent 80a0a78 commit dad35a2

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/generate-schema.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const { AgentCoreProjectSpecSchema } = await import('../dist/schema/schemas/agen
1717

1818
const schema = z.toJSONSchema(AgentCoreProjectSpecSchema, { target: 'draft-07' });
1919

20-
// Allow $schema field alongside the strict properties
21-
schema.properties.$schema = { type: 'string' };
22-
2320
// Fields with defaults should not be required — Zod's toJSONSchema marks them required anyway
2421
if (schema.required && schema.properties) {
2522
schema.required = schema.required.filter(field => !('default' in schema.properties[field]));

src/lib/schemas/io/config-io.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { mkdir, readFile, writeFile } from 'fs/promises';
2121
import { dirname } from 'path';
2222
import { type ZodType } from 'zod';
2323

24-
const SCHEMA_URL = 'https://raw.githubusercontent.com/aws/agentcore-cli/main/schemas/agentcore.schema.v1.json';
24+
const SCHEMA_URL = 'https://schema.agentcore.aws.dev/v1/agentcore.json';
2525

2626
/**
2727
* Manages reading, writing, and validation of AgentCore configuration files

0 commit comments

Comments
 (0)