Skip to content

Conversation

mukk85
Copy link

@mukk85 mukk85 commented Nov 30, 2020

Previously the relationship links would be kebab case for instance 'localhost:1337/media-outlets/5/publishers', which sails will not pick up by default. I have adjusted it so it will return 'localhost:1337/mediaOutlets/5/publishers'.

I also found an issue where the type wasn't registered in JSONAPISerializer as sails.model.associations.model was all lowercase instead of camel case. Therefore, the kebabCase call wasn't functioning as expected. There is now a modelMap which will properly define the type name in kebabCase.

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