3 references to GetCustomAttributes
Microsoft.AspNetCore.OpenApi (3)
Schemas\JsonSchemaMapper\JsonSchemaGenerationContext.cs (2)
57
GetCustomAttributes
(typeof(TAttribute), inherit).Any();
67
(TAttribute?)
GetCustomAttributes
(typeof(TAttribute), inherit).FirstOrDefault();
Services\Schemas\OpenApiSchemaService.cs (1)
58
if (context.
GetCustomAttributes
(typeof(ValidationAttribute)) is { } validationAttributes)