[release/10.0] Update OpenApi to 2.12 - #68468
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the repository’s dependency version constraints for the Microsoft.OpenApi and Microsoft.OpenApi.YamlReader packages to allow resolving OpenApi 2.12.x (while still preventing 3.x).
Changes:
- Bumped
MicrosoftOpenApiVersionminimum from 2.7.5 to 2.12.0 (range remains< 3.0.0). - Bumped
MicrosoftOpenApiYamlReaderVersionminimum from 2.7.5 to 2.12.0 (range remains< 3.0.0).
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
@copilot OpenApiSchema.Example is now deprecated. Update the usage to OpenApiSchema.Examples. |
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Done in a02b7c9 — the XML comment schema transformer now sets Note: |
| { | ||
| schema.Description = typeComment.Summary; | ||
| if (typeComment.Examples?.FirstOrDefault() is { } jsonString) | ||
| if (typeComment.Examples?.FirstOrDefault().Parse() is { } example) |
There was a problem hiding this comment.
@copilot Don't move the Parse call around. Keep the original structure.
There was a problem hiding this comment.
Reverted in 3b7cb1e — back to if (typeComment.Examples?.FirstOrDefault() is { } jsonString) with schema.Examples = [jsonString.Parse()!];, matching the existing x-ref-example pattern below. Snapshots regenerated.
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
No description provided.