fixed json schema

This commit is contained in:
Paul Gauthier 2023-06-27 19:07:45 -07:00
parent 2358b638b8
commit f22ccf6195

View file

@ -26,30 +26,24 @@ class EditBlockFunctionCoder(Coder):
edits=dict( edits=dict(
type="array", type="array",
items=dict( items=dict(
parameters=dict( type="object",
type="object", required=["path", "original_lines", "updated_lines"],
required=["path", "original_lines", "updated_lines"], properties=dict(
properties=dict( path=dict(
path=dict( type="string",
type="string", description="Path of file to edit",
description="Path of file to edit", ),
), original_lines=dict(
original_lines=dict( type="string",
type="string", description=(
description=( "Lines from the original file, including all"
( " whitespace, newlines, without skipping any lines"
"Lines from the original file, including all"
" whitespace, newlines, without skipping any lines"
),
),
),
updated_lines=dict(
type="string",
description=(
"New content to replace the `original_lines` with"
),
), ),
), ),
updated_lines=dict(
type="string",
description="New content to replace the `original_lines` with",
),
), ),
), ),
), ),