Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: maxjay/patchwork
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: maxjay/patchwork
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: claude/patchwork-ajv
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 9 files changed
  • 1 contributor

Commits on Jun 16, 2026

  1. feat: add @maxjay/patchwork-ajv validation package

    New add-on package that exposes a single validate(engine, schema) function.
    Validates engine.draft against a JSON Schema using Ajv and returns all
    violations as Ajv ErrorObjects extended with a JSONPath-format path field.
    
    - strict: false so x-key/x-ordered vendor extensions are ignored
    - allErrors: true to collect the full error list, not just the first
    - $ref/$defs resolved automatically by Ajv
    - instancePath (JSON Pointer) mapped to path (bracket-notation JSONPath)
    
    https://claude.ai/code/session_01PiYJpFPqKjQVoxTQoFwwpV
    claude committed Jun 16, 2026
    Configuration menu
    Copy the full SHA
    18050df View commit details
    Browse the repository at this point in the history
  2. ci: publish @maxjay/patchwork-ajv alongside core on release

    Adds a parallel publish-ajv job that installs, tests, builds, and
    publishes packages/patchwork-ajv on every GitHub release.
    
    https://claude.ai/code/session_01PiYJpFPqKjQVoxTQoFwwpV
    claude committed Jun 16, 2026
    Configuration menu
    Copy the full SHA
    f9a8750 View commit details
    Browse the repository at this point in the history
  3. refactor: user brings their own Ajv instance to validate()

    validate(engine, ajv, schema) — caller owns all Ajv configuration
    ($data, ajv-formats, custom keywords, etc.). The package only handles
    the engine.draft binding and instancePath → JSONPath conversion.
    
    Adds a test covering $data: true cross-field validation.
    
    https://claude.ai/code/session_01PiYJpFPqKjQVoxTQoFwwpV
    claude committed Jun 16, 2026
    Configuration menu
    Copy the full SHA
    60ac72d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    26d295d View commit details
    Browse the repository at this point in the history
Loading