aiconfig
aiconfig copied to clipboard
Update JSONEditor to Support AIConfig Schema Definitions
See https://github.com/lastmile-ai/aiconfig/pull/686
Currently, we need to pass in the schema object to JSONEditor to validate the input JSON. However, it should be possible to just provide a reference to the definition (e.g. PromptInput) in our schema.
Was getting an error attempting to do so with
schema: {
$ref: "#/definitions/PromptInput",
}
Gave this error:
$ref '/definitions/PromptInput' in 'https://json.schemastore.org/aiconfig-1.0' can not be resolved.(768)