Skip to content

FunctionDeclarationSchema is too terse and needs to support valid additional JSONSchema definitions #313

Open
@mattgi

Description

@mattgi

Description of the bug:

additionalProperties is not an allowed field to include for a parameter, nor is oneOf (or an array) of Types. It is also not possible to omit the type. All of these variations are valid JSONSchema property definitions.

This limits the values to being known and makes it difficult to utilize function calling for something like an object of React Props or something that is quite dynamic.

Actual vs expected behavior:

Add additionalProperties: true as a valid field for function params.
This should be treated equivalent to { [key:string]: any; }

Any other information you'd like to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3status:triagedIssue/PR triaged to the corresponding sub-teamtype:feature requestNew feature request/enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions