You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today if there's no function JSON file we use the path name as the function name, but if there's a functions JSON file then the name field must be included.. we should make it optional and also use the same path name
@claude please make sure that in the schema of function.json the name field is optional, and if empty calculate it in the same way we do for functions without a a json file
Activity
claude commentedon Mar 8, 2026
Claude finished @kfirstri's task in 2m 35s —— View job •
claude/issue-373-20260308-0922• Create PR ➔Done
namefield optional inFunctionConfigSchemareadFunctionto compute path-based name whennameis absentChanges made
src/core/resources/function/schema.tsFunctionConfigSchema.namechanged from required to optionalBackendFunctionSchemanow overridesnameback to required, ensuring all resolved functions always have a namesrc/core/resources/function/config.tsreadFunctionnow acceptsfunctionsDiras a second parameterconfig.nameis absent, computes the path-based name usingrelative(functionsDir, functionDir)— identical to how zero-config functions are namedtests/tests/fixtures/function-discovery/no-name-in-config/function.jsonc(nonamefield) +entry.tsMake function name optional in function.json schema, fall back to pat…