Skip to content

Commit 04bed46

Browse files
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>
1 parent 3b3f825 commit 04bed46

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/FSharp.Data.Json.Core/JsonSchema.fs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@ module JsonSchema =
231231
let parseSchemaFromString (schemaString: string) =
232232
JsonValue.Parse(schemaString) |> parseSchema
233233

234-
/// Parse a JSON Schema from a TextReader
235-
let parseSchemaFromTextReader (resolutionFolder: string) (reader: System.IO.TextReader) =
234+
/// Parse a JSON Schema from a TextReader.
235+
/// The <c>resolutionFolder</c> parameter is reserved for future <c>$ref</c> resolution support
236+
/// and is not currently used; JSON Schema <c>$ref</c> resolution is not yet implemented.
237+
let parseSchemaFromTextReader (_resolutionFolder: string) (reader: System.IO.TextReader) =
236238
let schemaString = reader.ReadToEnd()
237239
parseSchemaFromString schemaString
238240

0 commit comments

Comments
 (0)