Policy files in YAML and JSON with a published JSON Schema

オープン
#11 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
json, python, yaml
領域
backend

調査の方向性

Start in src/sqlguardllm/policy.py, where Policy.from_file() and Policy.from_dict() would need to accept YAML and JSON input, and read examples/policy.yaml to see the expected shape. The YAML dependency belongs in an optional sqlguardllm[yaml] extra, so the core runtime stays sqlglot-only. schema/policy.schema.json must be generated and must reject unknown keys with the key path in the error. Done means the valid and invalid policy file tests pass. This issue depends on #2, so check that it is merged first.

索引モデルが issue の本文から書いたものです。

説明

area:core size:s type:feature
Goal

Let teams keep policies in version control and review them like code.

Acceptance criteria
  • Policy.from_file() and Policy.from_dict() load examples/policy.yaml; YAML support through the optional extra sqlguardllm[yaml] so the runtime stays sqlglot-only
  • JSON Schema generated to schema/policy.schema.json; unknown keys are errors that name the key path
  • Tests for valid and invalid files
Relevant files
  • src/sqlguardllm/policy.py
  • schema/policy.schema.json
  • examples/policy.yaml
Size

S (up to half a day)

Notes
主要言語
Python
スター
0
フォーク
0
平均マージ
1分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jmmana/sqlguardllm のほかの issue

jmmana/sqlguardllm の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。