Skip to content
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

Namespace separator setting for json-api and tests #1791

Closed
wants to merge 2 commits into from

Conversation

bf4
Copy link
Member

@bf4 bf4 commented Jun 9, 2016

  • Documentation
  • Type transform setting and transformer, name fixed in tests

I resolved #1609,
merged into master, and would like @remear and @youroff to review for any
changes, since I'm merging this after changes in the KeyTransform code were made.

youroff and others added 2 commits April 4, 2016 00:57
documentation

Type transform setting and transformer, name fixed in tests
BF4:
Changelog added
Conflicts resolved:
	test/adapter/json_api/linked_test.rb
	test/adapter/json_api/resource_identifier_test.rb
@@ -22,6 +22,8 @@ def config.array_serializer
config.default_includes = '*'
config.adapter = :attributes
config.jsonapi_resource_type = :plural
config.jsonapi_namespace_separator = '--'.freeze
config.jsonapi_type_transform = :underscore
Copy link
Contributor

Choose a reason for hiding this comment

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

type transform is underscore? doesn't this go against our other transform?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup... This is why it needs a thoughtful review :)

B mobile phone

On Jun 9, 2016, at 3:54 AM, L. Preston Sego III notifications@github.com wrote:

In lib/active_model/serializer/configuration.rb:

@@ -22,6 +22,8 @@ def config.array_serializer
config.default_includes = '*'
config.adapter = :attributes
config.jsonapi_resource_type = :plural

  •    config.jsonapi_namespace_separator = '--'.freeze
    
  •    config.jsonapi_type_transform = :underscore
    
    type transform is underscore? doesn't this go against our other transform?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Copy link
Contributor

Choose a reason for hiding this comment

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

What if we had the default what it is now?

@bf4
Copy link
Member Author

bf4 commented Aug 12, 2016

Superseded by #1874

@bf4 bf4 closed this Aug 12, 2016
@bf4 bf4 deleted the namespace_separator_setting branch August 12, 2016 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants