From 9a0fc2f794634a28bd671241b719f422e80c6752 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Feb 2026 20:37:00 +0000 Subject: [PATCH 1/2] Emit diagnostic warning when sample path not found and falling back to inline content When a relative URI is provided as Sample but cannot be resolved as a file path, the type provider silently falls back to treating the value as inline content. This caused confusing errors (e.g. schema column mismatch) with no indication that the path wasn't found. Now emits an eprintfn diagnostic: 'FSharp.Data: the path '...' was not found; treating the value as inline content.' Fixes #953 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- RELEASE_NOTES.md | 4 ++++ .../CommonProviderImplementation/Helpers.fs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 7a481e7fb..eb448975c 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,9 @@ # Release Notes +## 7.0.2 + +- When a Sample path is not found and the value is treated as inline content, emit a diagnostic warning message (fixes #953) + ## 7.0.1 - Revert "fix potential XXE vulnerability in XML parsing by @Thorium in #1596" diff --git a/src/FSharp.Data.DesignTime/CommonProviderImplementation/Helpers.fs b/src/FSharp.Data.DesignTime/CommonProviderImplementation/Helpers.fs index d69484bac..832888e17 100644 --- a/src/FSharp.Data.DesignTime/CommonProviderImplementation/Helpers.fs +++ b/src/FSharp.Data.DesignTime/CommonProviderImplementation/Helpers.fs @@ -337,6 +337,11 @@ module internal ProviderHelpers = if not uri.IsAbsoluteUri then // even if it's a valid uri, it could be sample text + eprintfn + "FSharp.Data: the path '%s' was not found; treating the value as inline %s content." + valueToBeParsedOrItsUri + formatName + try { Spec = parseFunc "" valueToBeParsedOrItsUri IsUri = false From f3ea2922557c15cc165f8493ac71db348745138a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Feb 2026 20:40:47 +0000 Subject: [PATCH 2/2] ci: trigger CI checks