Skip to content

Conversation

sbennett33
Copy link
Contributor

Summary

Removes the unnecessary warning that appears when processing recursive embedded resources in OpenAPI schema generation. The code already correctly handles recursion by using $ref references, so the warning is misleading and makes it seem like something is wrong when the behavior is actually expected and properly handled.

Changes

  • Removed Logger.warning call in lib/ash_json_api/json_schema/open_api.ex when detecting recursive embedded types
  • Updated test in test/acceptance/json_schema_test.exs to remove log capture and warning assertion

The warning "Detected recursive embedded type" was being logged when
processing self-referential embedded resources in OpenAPI schema
generation. This is expected behavior - the code correctly handles
recursion by using $ref references. The warning was misleading since
it made it seem like something was wrong when the recursion was being
handled properly.
@zachdaniel zachdaniel merged commit f3ce0b8 into ash-project:main Oct 1, 2025
4 of 5 checks passed
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

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.

2 participants