Skip to content

GH-6207: Guard JSON schema generation#6217

Open
juanjuandog wants to merge 1 commit into
spring-projects:mainfrom
juanjuandog:fix-json-schema-generator-concurrency
Open

GH-6207: Guard JSON schema generation#6217
juanjuandog wants to merge 1 commit into
spring-projects:mainfrom
juanjuandog:fix-json-schema-generator-concurrency

Conversation

@juanjuandog
Copy link
Copy Markdown
Contributor

Fixes GH-6207.

Victools' SchemaGenerator instances are shared by the schema utilities, but schema generation can be reached concurrently through structured output and tool schema paths.

This guards calls into the shared generators and adds concurrent coverage for the type, method input, and utility code paths.

Tests:

  • .\mvnw.cmd -pl spring-ai-model -Dtest=JsonSchemaGeneratorTests,JsonSchemaUtilsTests test

Signed-off-by: juanjuandog <z13795891939@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON Schema Generation not thread safe - ConcurrentModificationException from Victools

1 participant