Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package nl.dannyj.mistral.models.completion.tool;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRawValue;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down Expand Up @@ -60,6 +61,7 @@ public class JsonSchema {
* @return The string representing the JSON schema.
*/
@NotNull
@JsonRawValue
@JsonProperty("schema")
private String schema;

Expand All @@ -71,4 +73,7 @@ public class JsonSchema {
*/
@Builder.Default
private boolean strict = false;



}
Loading