From 04bed463de1bd8710fe2e93a02510641e203e3a4 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Sun, 26 Apr 2026 05:07:37 +0000
Subject: [PATCH 1/2] Fix FS1182 compiler warning: mark resolutionFolder as
intentionally unused
The resolutionFolder parameter in JsonSchema.parseSchemaFromTextReader is
a placeholder for future JSON Schema $ref resolution support (analogous to
the XML provider which uses this parameter for XSD $ref resolution).
Since $ref resolution is not yet implemented for JSON Schema, the parameter
is currently unused, generating a FS1182 compiler warning.
Prefix it with _ to indicate it is intentionally unused and suppress the
warning, while preserving the future-use intent via the doc comment.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
src/FSharp.Data.Json.Core/JsonSchema.fs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/FSharp.Data.Json.Core/JsonSchema.fs b/src/FSharp.Data.Json.Core/JsonSchema.fs
index 784aa0e6b..a25083e50 100644
--- a/src/FSharp.Data.Json.Core/JsonSchema.fs
+++ b/src/FSharp.Data.Json.Core/JsonSchema.fs
@@ -231,8 +231,10 @@ module JsonSchema =
let parseSchemaFromString (schemaString: string) =
JsonValue.Parse(schemaString) |> parseSchema
- /// Parse a JSON Schema from a TextReader
- let parseSchemaFromTextReader (resolutionFolder: string) (reader: System.IO.TextReader) =
+ /// Parse a JSON Schema from a TextReader.
+ /// The resolutionFolder parameter is reserved for future $ref resolution support
+ /// and is not currently used; JSON Schema $ref resolution is not yet implemented.
+ let parseSchemaFromTextReader (_resolutionFolder: string) (reader: System.IO.TextReader) =
let schemaString = reader.ReadToEnd()
parseSchemaFromString schemaString
From bb375acba7b2e9d9d9e37081a5f780597148881f Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Sun, 26 Apr 2026 05:07:42 +0000
Subject: [PATCH 2/2] ci: trigger checks