better json schema errors#178
Closed
pelikhan wants to merge 13 commits intogithub:mainfrom
githubnext:main
Closed
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Add internal/mapper package with MapErrorToSpans API - RFC6901 JSON Pointer decoding with proper escaping - goccy/go-yaml AST traversal with position metadata - Error-kind specific mapping (type, required, additionalProperties) - Fallback heuristics for missing properties and out-of-range indices - Confidence scoring system (0.2-1.0 range) - Comprehensive test suite with 100% coverage - CLI test runner for interactive debugging - Full documentation with algorithm details Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…e locations Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…n.go - Extract all JSON schema validation related functions to dedicated file - Move httpURLLoader, validateWorkflowSchema*, formatSchemaValidationError, extractErrorMeta, formatValidationMessage, generateValidationHint, and extractContextLines - Remove unused imports from compiler.go (net/http, jsonschema, mapper) - Maintain all existing functionality and method signatures - All tests continue to pass with the refactored code structure Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…af62-a58980a2e9e1 Add draft boolean option to output.pull-request feature
…g integration Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…b73e-fe64be5b3b8a Add comprehensive JSON Schema validation test suite with error mapping integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Doing some magic to locate errors from json schema back into the source.