Repository navigation
Conversation
…I, platform and AI builder lintSchema/fixSchema/formatLintReport over a flat rule array. Errors are schemas the CLI scaffolds into code that does not compile (field vs relationship property collisions, duplicate FK columns, reserved class names, unknown types, enums without values, bad index fields) or a DB that cannot take its first insert (required FK cycles). Ports the client and CLI codegen naming fixture as the canonical tests. Registered in auto-release.
Contributor
Author
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.
Adds
@apso/schema-lint:lintSchema,fixSchema,formatLintReport. 15 error rules (compile/DB breaking, most auto-fixable) and 9 warnings. Tested against 84 unique real .apsorc files; 54/62 v2 schemas clean, remaining errors are real (verified tsc failures). Used by the CLI (apso schema lint, generate guard; apsoai/cli#138) and the AI schema agent.Release plan (new package, trusted publishing can't be set up before it exists):
[skip ci]in the squash title, then tagts-schema-lint-v0.1.0on the merge commit, so auto-release doesn't try to republish 0.1.0 (the registry guard would refuse a hand-published version).