Skip to content

feat(schema): JSON Schema load, registry cache, Validate API (#7)#39

Merged
leo-aa88 merged 1 commit into
mainfrom
issue/7-json-schema
Apr 11, 2026
Merged

feat(schema): JSON Schema load, registry cache, Validate API (#7)#39
leo-aa88 merged 1 commit into
mainfrom
issue/7-json-schema

Conversation

@leo-aa88
Copy link
Copy Markdown
Member

  • Add internal/schema: jsonschema (pinned Draft 2020 compiler), Registry with compiled-schema cache, Validate(schemaPath, instance []byte)
  • ResolveSchemaPath(projectRoot, ref) keeps paths under root; documented rule
  • Typed errors: FileError, CompileError, InstanceError, ValidationError
  • Dependency: github.com/santhosh-tekuri/jsonschema/v6
  • Tests: fixture valid/invalid instance, missing file path, path resolution

Closes #7

Made-with: Cursor

- Add internal/schema: jsonschema (pinned Draft 2020 compiler), Registry with
  compiled-schema cache, Validate(schemaPath, instance []byte)
- ResolveSchemaPath(projectRoot, ref) keeps paths under root; documented rule
- Typed errors: FileError, CompileError, InstanceError, ValidationError
- Dependency: github.com/santhosh-tekuri/jsonschema/v6
- Tests: fixture valid/invalid instance, missing file path, path resolution

Closes #7

Made-with: Cursor
@leo-aa88 leo-aa88 merged commit ed4c542 into main Apr 11, 2026
4 checks passed
@leo-aa88 leo-aa88 deleted the issue/7-json-schema branch April 11, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MVP] JSON Schema loading and validation (internal/schema)

1 participant