Skip to content

Test additional file patterns with action serializers#330

Closed
OdenTakashi wants to merge 1 commit intodrwl:mainfrom
OdenTakashi:test_additonal_file_patterns_with_action_serializer
Closed

Test additional file patterns with action serializers#330
OdenTakashi wants to merge 1 commit intodrwl:mainfrom
OdenTakashi:test_additonal_file_patterns_with_action_serializer

Conversation

@OdenTakashi
Copy link
Copy Markdown
Collaborator

Summary

This PR demonstrates that action-specific serializers can be annotated with the existing additional_file_patterns option.

For example, serializers named like this:

app/serializers/test_default_index_serializer.rb
app/serializers/test_default_show_serializer.rb

can be picked up with:

additional_file_patterns:
  - "app/serializers/%MODEL_NAME%_*_serializer.rb"

This allows serializers such as TestDefaultIndexSerializer and TestDefaultShowSerializer to receive the schema annotation for TestDefault.

This is a reference PR to demonstrate that action-specific serializers can be annotated with the existing additional_file_patterns option.

@OdenTakashi
Copy link
Copy Markdown
Collaborator Author

Sorry, I opened this PR against the upstream repository by mistake.

This was intended as a reference/demo PR on my fork while discussing #329, so I’m going to close it for now.

@OdenTakashi OdenTakashi closed this May 1, 2026
@OdenTakashi OdenTakashi deleted the test_additonal_file_patterns_with_action_serializer branch May 1, 2026 00:25
@OdenTakashi OdenTakashi restored the test_additonal_file_patterns_with_action_serializer branch May 1, 2026 00:25
@OdenTakashi OdenTakashi deleted the test_additonal_file_patterns_with_action_serializer branch May 1, 2026 00:26
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.

1 participant