Skip to content

Provide a tested editor-schema validator for app component files - #6

Merged
Sebastian Mertens Make (MAKESEB) merged 2 commits into
mainfrom
feat/editor-schema-validator
Nov 12, 2026
Merged

Sebastian Mertens Make (MAKESEB) merged 2 commits into
mainfrom
feat/editor-schema-validator

Conversation

@dovile-make

@dovile-make Dovilė Sližytė (dovile-make) commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

The skill required editor-schema validation but provided no runnable validator. This adds a read-only CLI that loads the bundled schemas with the required Ajv settings, maps component files (including explicit OAuth filenames), and reports sections without schemas as not validated.

Comment handling rejects unterminated comments and token-joining input while preserving strings and supported line endings. The CLI also runs correctly through symlinked paths. Ajv remains an external dependency resolved from the working directory; no dependency is added to the standalone skill.

Validation:

  • 15 behavioral regression tests, introduced with failing reproductions, pass.
  • Four portability tests and build/check-build pass locally.
  • Actual CLI fixtures with Ajv 8.20.0 cover valid/invalid OAuth files, malformed comments and normal requests.
  • GitHub CI runs the full unit, packaging and SDK suites.

No live Make or provider execution is claimed.

The review procedure requires validating every component file against the
bundled editor schemas, but the skill shipped no way to run it, and the
schemas do not load with Ajv's defaults. Add validate.mjs (read-only, no
network), document the settings, and list the sections that have no schema
so they are reported as not validated instead of passed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@dovile-make

Copy link
Copy Markdown
Contributor Author

Seen again in a second batch of 20 independent reviews (skill at 522944f, so without this change): 20 of 20 reviewers wrote their own Ajv runner, and nearly all hit the same compile failure on the bundled schemas until they set unicodeRegExp: false. One noted that a reviewer who does not find that setting ends up with zero files validated and could read the crash as "validation failed".

Gaps the reviewers named that this PR could also close, if they are not covered yet:

  • The file-to-schema table has no entry for the webhook receiver api, the webhook update file, install / installSpec and metadata.json, so "validate every component file" cannot be met and each reviewer guessed.
  • Exported .imljson files can contain // comments, which a plain JSON.parse rejects.
  • Schema warnings that are not defects are listed only for unknown keys and enum values. Two more came up repeatedly: a POST with no body where the provider takes none, and a module-level response.error without a top-level message when Base supplies one.

🤖 Generated with Claude Code

@dovile-make

Copy link
Copy Markdown
Contributor Author

Seen again in a third batch (20 more independent reviews, 2026-11-12, skill still at 522944f): 20 of 20 reviewers wrote their own schema validator, and almost all report the same Ajv 8 problem again (the bundled schemas do not compile until unicodeRegExp: false is set, plus $id handling for the cross-file $refs).

Mapping gaps reported again: no schema for the webhook receiver api file and webhook update, none for install / installSpec, none for connection common. One new report: the api schema requires body on POST, which flags body-less POST requests that work.

Several reviewers also note they had to self-test their home-made validator on known-bad files before trusting a "0 warnings" result, a step the skill does not mention.

🤖 Generated with Claude Code

Map explicit OAuth filenames, reject malformed comments without joining tokens,
and run the CLI through symlinked paths. Behavioral regression tests cover these
failures while preserving dependency-free imports and the standalone skill.

Confidence: high
Scope-risk: narrow
Constraint: The standalone skill must not vendor Ajv or require it for unit tests
Tested: 15 behavioral regressions, four portability tests, actual CLI fixtures with Ajv 8.20.0, build and check-build
Not-tested: Live Make or provider execution
@MAKESEB Sebastian Mertens Make (MAKESEB) changed the title Ship a runnable editor-schema validator and document its Ajv settings Provide a tested editor-schema validator for app component files Nov 12, 2026

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.

Reviewed the validator and corrective diffs. Fifteen behavioral regressions, real CLI fixtures and independent review cover the OAuth mapping, comment parsing and symlink entry point. Current-head full unit, packaging and SDK CI checks pass.

@MAKESEB
Sebastian Mertens Make (MAKESEB) merged commit 98e7159 into main Nov 12, 2026
3 checks passed
@MAKESEB
Sebastian Mertens Make (MAKESEB) deleted the feat/editor-schema-validator branch November 12, 2026 10: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.

2 participants