Skip to content

Add Diagnostic provider to Schema Validation, improve JSON Pointer handling and add Dialect support#7

Merged
srivastava-diya merged 5 commits into
hyperjump-io:mainfrom
srivastava-diya:feature/schema-validation
Jun 8, 2026
Merged

Add Diagnostic provider to Schema Validation, improve JSON Pointer handling and add Dialect support#7
srivastava-diya merged 5 commits into
hyperjump-io:mainfrom
srivastava-diya:feature/schema-validation

Conversation

@srivastava-diya

@srivastava-diya srivastava-diya commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Description

Based on feedback from our call, i have made the following changes

  1. build-server.ts : Added support for all JSON Schema dialects (draft-04 through draft-2020-12).
  2. SchemaValidation.ts : Replaced the instanceLocation.slice(2).split("/") path resolution with findNodeByPointer a helper Fn that uses @hyperjump/json-pointer's pointerSegments to correctly handle escape sequences and array indices.
  3. language-server.test.ts : Added test with property names containing / (escape sequence)

@srivastava-diya srivastava-diya changed the title Add Diagnostic provider to Schema Validation Add Diagnostic provider to Schema Validation, improve JSON Pointer handling and add Dialect support Jun 3, 2026

@jdesrosiers jdesrosiers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's start organizing our tests. There should be a separate test file for each feature. So, src/features/SchemaValidation.test.ts, src/features/SyntaxValidation.test.ts, etc.

Comment thread language-server/src/features/SchemaValidation.ts Outdated
Comment thread language-server/src/features/SchemaValidation.ts Outdated
Comment thread language-server/src/features/SchemaValidation.ts Outdated
@jdesrosiers

Copy link
Copy Markdown
Collaborator
image

Merging "main" into a feature branch can cause problems. Prefer rebasing feature branches and only merging into "main".

@srivastava-diya srivastava-diya force-pushed the feature/schema-validation branch from 9604708 to d79aa9e Compare June 7, 2026 20:44
@srivastava-diya srivastava-diya merged commit a4089da into hyperjump-io:main Jun 8, 2026
3 checks passed
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.

2 participants