From 54e552aee3ef99d2af8d68315c9d540ef9d1719d Mon Sep 17 00:00:00 2001 From: Thomas Rooney Date: Mon, 25 Nov 2024 15:38:06 +0000 Subject: [PATCH] fix: sample spec needs no download (#1114) --- prompts/sources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prompts/sources.go b/prompts/sources.go index 55078402..2e68de91 100644 --- a/prompts/sources.go +++ b/prompts/sources.go @@ -223,7 +223,7 @@ func sourceBaseForm(ctx context.Context, quickstart *Quickstart) (*QuickstartSta } var summary *openapi.Summary - if authHeader == "" { + if authHeader == "" && len(fileLocation) > 0 { _, contents, _ := openapi.GetSchemaContents(ctx, fileLocation, "", "") summary, _ = openapi.GetOASSummary(contents, fileLocation) }