Skip to content

🐛 fix issue with default values for object type fields#2356

Merged
edno merged 4 commits intomainfrom
fix/2355-error-when-processing-schemas-where-default-options-are-defined-in-the-type-definition
Aug 27, 2025
Merged

🐛 fix issue with default values for object type fields#2356
edno merged 4 commits intomainfrom
fix/2355-error-when-processing-schemas-where-default-options-are-defined-in-the-type-definition

Conversation

@edno
Copy link
Copy Markdown
Member

@edno edno commented Aug 27, 2025

Description

Fix issue with InputObject fields with default value

type Query {
  searchRole(
    roles: [Roles!]! = [ADMIN]
    sort: EntitySort = { field: SOME_FIELD, direction: ASC }
  ): Int!
}
Before fix After fix
Screenshot 2025-08-27 at 18 59 55 Screenshot 2025-08-27 at 18 51 16

Checklist

  • My changes follow the contributing guidelines of this project.
  • I have performed a self-review of my code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my changes work.
  • New and existing unit tests pass locally with my changes.

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@edno edno merged commit 4d3b093 into main Aug 27, 2025
32 checks passed
@edno edno deleted the fix/2355-error-when-processing-schemas-where-default-options-are-defined-in-the-type-definition branch August 27, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant