validate all jsonschemas

This commit is contained in:
Paul Gauthier 2023-07-02 06:36:42 -07:00
parent 0d72ee1e45
commit ecb739ed07
4 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,7 @@
import os
from jsonschema import Draft7Validator
from aider import diffs
from ..dump import dump # noqa: F401
@ -33,6 +35,8 @@ class SingleWholeFileFunctionCoder(Coder):
]
def __init__(self, *args, **kwargs):
Draft7Validator.check_schema(self.functions[0])
self.gpt_prompts = SingleWholeFileFunctionPrompts()
super().__init__(*args, **kwargs)