Fixes: #1335

https://github.com/spring-projects/spring-ai/issues/1335

Add support for maintaining JSON property order in generated schemas using @JsonPropertyOrder. Users can now control the order of properties in their JSON schemas by annotating their classes/records with @JsonPropertyOrder.

  • Add JacksonOption.RESPECT_JSONPROPERTY_ORDER to BeanOutputConverter
  • Add test to verify schema property ordering
  • Update documentation with property ordering example

Comment From: ilayaperumalg

The changes LGTM. We also can add/update test at the OpenAiChatModelResponseFormatIT as quoted from the issue. Will update this when merging.

Comment From: ilayaperumalg

Rebased and merged as 79266be9700daeb894e265b1dae17e1257194769 along with the tests update c1fc687730eaeeed2e4727bbab8b22f27a96dbb6