diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index 31e85cd25d..46131043d5 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -5244,10 +5244,19 @@ paths: - $ref: "#/components/parameters/WorkspaceId" responses: "200": - description: map from resource type to file ext + description: map from resource type to file resource info content: application/json: - schema: {} + schema: + type: object + additionalProperties: + type: object + properties: + format_extension: + type: string + nullable: true + is_fileset: + type: boolean /w/{workspace}/resources/type/delete/{path}: delete: diff --git a/backend/windmill-store/src/resources.rs b/backend/windmill-store/src/resources.rs index 9fe64e4f33..a03d97c320 100644 --- a/backend/windmill-store/src/resources.rs +++ b/backend/windmill-store/src/resources.rs @@ -1517,7 +1517,7 @@ async fn update_resource_type( sqlb.set_str("description", ndesc); } if let Some(is_fileset) = ns.is_fileset { - sqlb.set_str("is_fileset", if is_fileset { "TRUE" } else { "FALSE" }); + sqlb.set("is_fileset", if is_fileset { "TRUE" } else { "FALSE" }); } sqlb.set_str("edited_at", "now()"); let sql = sqlb.sql().map_err(|e| Error::internal_err(e.to_string()))?; diff --git a/cli/src/utils/utils.ts b/cli/src/utils/utils.ts index f58d507da0..766b372a0a 100644 --- a/cli/src/utils/utils.ts +++ b/cli/src/utils/utils.ts @@ -154,6 +154,7 @@ export function isFileResource(path: string): boolean { ); } +/** Matches children inside a .fileset/ directory, not the directory itself. */ export function isFilesetResource(path: string): boolean { return path.includes(".fileset/") || path.includes(".fileset\\"); }