FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs(core): document String structuredContent parsing in JsonSchemaValidator by slachiewicz · Pull Request #1111 · modelcontextprotocol/java-sdk · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public static ValidationResponse asInvalid(String message) {

/**
* Validates the structured content against the provided JSON schema.
* <p>
* If {@code structuredContent} is a {@link String}, it is treated as a serialized
* JSON document and parsed before validation; quote embedded strings accordingly (for
* example {@code "\"red\""} for the JSON string value {@code red}). Any other type is
* converted to its JSON representation directly.
* @param schema The JSON schema to validate against.
* @param structuredContent The structured content to validate.
* @return A ValidationResponse indicating whether the validation was successful or
Expand Down
Loading

Back | FazBrowse Home | New Git URL