Skip to content

Commit

Permalink
Update the validate API doc parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
SasinduDilshara committed Nov 22, 2024
1 parent 395b399 commit 4272d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballerina/xml_api.bal
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ isolated function addNamespaces(map<string> allNamespaces, map<string> namespace
# The schema can either be a file path to the `.xsd` file or a Ballerina record type that represents
# the XSD structure. The function checks if the `xmlValue` conforms to the provided schema.
#
# + schema - A `string` representing the XSD content or a Ballerina record type representing the XSD.
# + schema - A `string` representing the file path to the `.xsd` file or a Ballerina record type representing the XSD.
# + xmlValue - The XML document that needs to be validated against the schema.
# + return - Returns `()` if the XML is valid according to the schema, otherwise returns `Error`.
public function validate(xml xmlValue, string|typedesc<record {}> schema)
Expand Down

0 comments on commit 4272d14

Please sign in to comment.