Skip to content

Add JSON Schema for import_rules.yaml#20

Draft
Copilot wants to merge 5 commits into
mainfrom
copilot/add-yaml-schema-rules-files
Draft

Add JSON Schema for import_rules.yaml#20
Copilot wants to merge 5 commits into
mainfrom
copilot/add-yaml-schema-rules-files

Conversation

Copilot AI commented Feb 17, 2026

Copy link
Copy Markdown

This introduces a machine-readable schema for import_rules rules files so they can be validated/autocompleted by YAML-aware tooling and submitted to SchemaStore.

  • Schema definition (import_rules.schema.json)
    • Added a Draft-07 JSON Schema at repo root.
    • Encodes top-level config:
      • rules (required)
      • severity (error | warning | info)
    • Encodes per-rule structure:
      • required: reason, target, disallow
      • optional: exclude_target, exclude_disallow, severity
    • Supports string | string[] forms for target/disallow fields.
    • Restricts unknown fields via additionalProperties: false (top-level and per rule).

This PR now contains only import_rules.schema.json.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add a YAML schema</issue_title>
<issue_description>Add a YAML schema for rules files and register it to SchemaStore.org.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: fujidaiti <68946713+fujidaiti@users.noreply.github.com>
Copilot AI changed the title [WIP] Add YAML schema for rules files to SchemaStore Add JSON Schema for import_rules.yaml and document editor integration Feb 17, 2026
Copilot AI requested a review from fujidaiti February 17, 2026 03:16
@fujidaiti

Copy link
Copy Markdown
Owner

@copilot Revert all changes except import_rules.schema.json

Co-authored-by: fujidaiti <68946713+fujidaiti@users.noreply.github.com>

Copilot AI commented Feb 17, 2026

Copy link
Copy Markdown
Author

@copilot Revert all changes except import_rules.schema.json

Done in 3cf21c8. I reverted all previously added changes except import_rules.schema.json, so the PR now only keeps that schema file.

Copilot AI changed the title Add JSON Schema for import_rules.yaml and document editor integration Add JSON Schema for import_rules.yaml Feb 17, 2026
@fujidaiti

Copy link
Copy Markdown
Owner

TODO

fujidaiti and others added 2 commits March 10, 2026 17:43
Co-Authored-By: Claude Code <noreply@anthropic.com>
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.

Add a YAML schema

2 participants