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