You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`java.lang.AssertionError:
Expecting actual:
"Your response should be in JSON format.
Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation.
Do not include markdown code blocks in your response.
Remove the ```json markdown from the output.
Here is the JSON Schema instance your output must adhere to:
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"type" : "object",
"properties" : {
"string_property" : {
"type" : "string",
"description" : "string_property_description"
}
},
"additionalProperties" : false
}```
"
to contain:
"```{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"type" : "object",
"properties" : {
"string_property" : {
"type" : "string",
"description" : "string_property_description"
}
},
"additionalProperties" : false
}```
"
at org.springframework.ai.converter.BeanOutputConverterTest$FormatTest.formatTypeReferenceWithAnnotations(BeanOutputConverterTest.java:311)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
`
when I change `assertThat(converter.getFormat()).contains` to `assertThat(converter.getFormat()).containsIgnoringWhitespaces` this test works fine. There are many Unit tests like that and I don't know if somebody had the same issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, I tried to build the project on the Windows OS, but some unit tests failed because of whitespace. For example, this test:
throws this exception:
`java.lang.AssertionError:
Expecting actual:
"Your response should be in JSON format.
Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation.
Do not include markdown code blocks in your response.
Remove the ```json markdown from the output.
Here is the JSON Schema instance your output must adhere to:
Beta Was this translation helpful? Give feedback.
All reactions