Skip to content

Fixed replacing whole document - #15

Merged
stefankoegl merged 1 commit into
stefankoegl:masterfrom
wkral:replace-whole-document
Jun 27, 2013
Merged

stefankoegl merged 1 commit into
stefankoegl:masterfrom
wkral:replace-whole-document

Conversation

@wkral

@wkral wkral commented Jun 23, 2013

Copy link
Copy Markdown
Contributor
  • json pointer to_last operation returns None for the part in the
    case that it is a whole document pointer
  • json patch now checks to see if the part is None and simply returns
    the value to replace the document
  • Added a test to verify the fix

- json pointer to_last operation returns None for the part in the
  case that it is a whole document pointer
- json patch now checks to see if the part is None and simply returns
  the value to replace the document
- Added a test to verify the fix
@stefankoegl

Copy link
Copy Markdown
Owner

Looks good at first glance. I'll have a closer look and merge later.

Would you mind adding your test also to json-patch/json-patch-tests?

@wkral

wkral commented Jun 24, 2013

Copy link
Copy Markdown
Contributor Author

I just submitted json-patch/json-patch-tests/pull/9 I guess you're a contributor for that repo as well, but I ran that test from there against master and the fix I submitted and it has the same result.

Thanks.

@stefankoegl
stefankoegl merged commit 3b6a5ee into stefankoegl:master Jun 27, 2013
@stefankoegl

Copy link
Copy Markdown
Owner

Thanks, I've just released version 1.1 with that fix.

@wkral

wkral commented Jun 27, 2013

Copy link
Copy Markdown
Contributor Author

Thanks for releasing the pypi version so quickly it will save me from cloning it from the git repo.

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