Skip to content

Conversation

@Mattias-Sehlstedt
Copy link
Contributor

@Mattias-Sehlstedt Mattias-Sehlstedt commented Feb 1, 2026

Pull Request

Thank you for contributing to swagger-core!

Please fill out the following information to help us review your PR efficiently.


Description

Draft until I figure out whether the changes in AnnotationUtils and getArraySchema with the prefixItems-construction is actually a correct approach.

Changes so that schema annotations are only removed for oas31 sibling handling if the property being interpreted is actually a sibling candidate (i.e., it will in the end involve a reference to a schema, so not List<String> for example). Previously the annotations were dropped simply based on the target specification version being 3.1.

I utilize tests and fixes provided by @ewaostrowska in ewaostrowska@2c91c03, 3157e48 and ewaostrowska@149c97a to showcase that the logic fixes the cases that have been presented in the issues.

Fixes #4993, #5012 and #5013.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

Screenshots / Additional Context

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.

[Bug]: Regression: class specified in @ArraySchema.schema.implementation not rendered in schemas

1 participant