Skip to content

Fix OpenApiJsonSchema array parsing #62051

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

BrennanConroy
Copy link
Member

Fixes #62023

We weren't reading before calling the recursive function which meant we'd never advance the Utf8JsonReader and always be in the state reader.TokenType == JsonTokenType.StartArray

@BrennanConroy BrennanConroy requested a review from a team as a code owner May 21, 2025 18:27
@github-actions github-actions bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label May 21, 2025
Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Comment inline about possibly adding coverage for custom converts that emit objects instead of arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-openapi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAPI Schema generation stackoverflow when converting Flags enum to a string array & is used in API models with default value
2 participants