-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix openapi schema xml comments handling for referenced schemas #62213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 13 commits
69cefb7
f324488
98f8c59
027a2e2
98ae2a2
81df677
12a0766
c9805b9
c51cec1
86b5753
c6f4f23
bf60920
c8f987f
01cf3b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,8 @@ internal sealed class OpenApiSchemaService( | |
{ | ||
schema.ApplyNullabilityContextInfo(jsonPropertyInfo); | ||
} | ||
if (context.PropertyInfo is { AttributeProvider: { } attributeProvider }) | ||
var isInlinedSchema = schema["x-schema-id"] is null; | ||
if (isInlinedSchema && context.PropertyInfo is { AttributeProvider: { } attributeProvider }) | ||
|
||
{ | ||
if (attributeProvider.GetCustomAttributes(inherit: false).OfType<ValidationAttribute>() is { } validationAttributes) | ||
{ | ||
|
Uh oh!
There was an error while loading. Please reload this page.