Hello,
Bug description
I've noticed a difference between the JacksonSchemaModule configuration in BeanOutputConverter.java and JsonSchemaGenerator.java.
In BeanOutputConverter.java there's JacksonOption.RESPECT_JSONPROPERTY_ORDER but not in JsonSchemaGenerator.java.
This setting is useful to set the reflexion property first for MistralAI and have a more accurate response.
IMO we can add the missing settings in JsonSchemaGenerator.java it shouldn't cause any harm.
Environment
Java 25, Spring Boot 4.0.5, SpringAI 2.0.0 M4
Steps to reproduce
Create a json schema with ResponseFormat.jsonSchema(MyExpectedOutput.class). With MyExpectedOutput containing @JsonPropertyOrder(...).
Expected behavior
The json schema should respect the @JsonPropertyOrder(...) annotation but it doesn't.
Hello,
Bug description
I've noticed a difference between the
JacksonSchemaModuleconfiguration inBeanOutputConverter.javaandJsonSchemaGenerator.java.In
BeanOutputConverter.javathere'sJacksonOption.RESPECT_JSONPROPERTY_ORDERbut not inJsonSchemaGenerator.java.This setting is useful to set the
reflexionproperty first for MistralAI and have a more accurate response.IMO we can add the missing settings in
JsonSchemaGenerator.javait shouldn't cause any harm.Environment
Java 25, Spring Boot 4.0.5, SpringAI 2.0.0 M4
Steps to reproduce
Create a json schema with
ResponseFormat.jsonSchema(MyExpectedOutput.class). WithMyExpectedOutputcontaining@JsonPropertyOrder(...).Expected behavior
The json schema should respect the
@JsonPropertyOrder(...)annotation but it doesn't.