aiconfig icon indicating copy to clipboard operation
aiconfig copied to clipboard

Update JSONEditor to Support AIConfig Schema Definitions

Open rholinshead opened this issue 1 year ago • 0 comments

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)

rholinshead avatar Jan 02 '24 17:01 rholinshead