Skip to content

Fix: Issue 223 - improve embedded input warning#437

Open
RhettPoole wants to merge 2 commits into
ash-project:mainfrom
RhettPoole:cursor/issue-223-improve-embedded-input-warning
Open

Fix: Issue 223 - improve embedded input warning#437
RhettPoole wants to merge 2 commits into
ash-project:mainfrom
RhettPoole:cursor/issue-223-improve-embedded-input-warning

Conversation

@RhettPoole

Copy link
Copy Markdown

Contributor checklist

Leave anything that you believe does not apply unchecked.

Summary

Improves the warning when an embedded type is used as GraphQL input but no input fields are produced (example used in test case is an empty 'accept' on create/update) instead of using the cryptic warning described in the initial issue description.

Related Issue

Fixes #223

Behavior

Warning text only; fallback to 'json_type' / ':json_string' is unchanged.

Testing

'mix test test/issue_223_repro_test.exs'
Full suite in WSL was tested as well.

@zachdaniel

Copy link
Copy Markdown
Contributor

👋 two things:

  • It looks like there are far more lines changed than were actually necessary. I can't locate the specific files that changed because for some reason git is showing the entire resource.ex file as having been changed 😓
  • Lets find an existing semantic place for these tests, as opposed to representing the issue in the name/creating a dedicated test.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cryptic warning when generating an input with not fields

2 participants