-
Notifications
You must be signed in to change notification settings - Fork 26
Latest JSONAPI and JSONAPI Reader #49
Comments
Thanks for working on this. I'm aware the spec has changed quite a bit, but since I personally don't use JSON-API any more I had no incentive to work on it. It seems that whatever you have is an improvement. I suggest you open a pull request, and we can move the discussion there. This makes it a lot easier to give feedback on the code. General things that are easily overlooked are updating the README and CHANGELOG. For the latter just add a description under the "master" heading at the top, beneath the link to the diff. It would also be a good opportunity to check if test coverage on these bits is up to date. We had 100% mutation coverage at one point, but unfortunately I have to admit that has slipped quite a bit nowadays. To run mutant against a certain class you can do If you're new to mutant there's an introduction here: http://www.sitepoint.com/mutation-testing-mutant/ |
Hey @plexus Hoping you could help me with two things.
|
In this case I would change the signature to def call(resource, _env = nil) The underscore signals it's ignored. Then add a test to make sure it doesn't blow up when you pass it two arguments. You're welcome to just add PR's for the chunks that you have. I'm assuming it will already be an improvement. You can add a few words to the relevant section in the README about the state of the implementation. |
We just hit RC3, so you all know :) |
@steveklabnik Thanks for the heads up :)
|
🎊 |
Now that JSONAPI is nearing a 1.0, it might be a good time to start migrating to the latest version.
I've started working on a Reader for JSONAPI to allow for deserialization, and in the process made a few changes to the Format class to bring it closer to the current JSONAPI format (the newer format seems to be a bit easier to manage anyway).
https://github.com/danelowe/yaks/tree/feature/jsonapi_reader
Looking for feedback on what else is left to do, and how to go about it before completing and submitting a pull request.
The text was updated successfully, but these errors were encountered: