Skip to content

Improve JSON validation schema generation in Microsoft.AspNetCore.OpenApi #41246

@captainsafia

Description

@captainsafia

#41238 introduced a very reductive schema generation interface for the OpenApi package.

Moving forward we want to make this API a lot more robust which includes generating the full schema (types, formats, and constraints) for Types that are provided in MethodInfo including:

  • Accounting for nullability
  • Accounting for default values
  • Accounting for types and formats to match JSON validation
  • Accounting for types with TryParse methods

Metadata

Metadata

Assignees

Labels

enhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-openapiold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions