Skip to content

mikemccabe/json-patch-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

json-patch-tests

Test cases for implementations of json-patch:

http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-02

Test format

The test file contains a list of test records, each with a few fields that defines a test.

  • doc: The JSON document to test against
  • patch: The patch(es) to apply.
  • expected: The expected resulting document, OR
  • error: A string describing an expected error
  • comment: A string describing the test
  • disabled: True if the test should be skipped.

All fields except 'doc' and 'patch' are optional. Test records consisting only of a comment are also OK.

This test set is not complete - additions are welcome!

Credits

The seed test set was adapted from https://github.com/bruth/jsonpatch-js/blob/master/test.js .

About

Tests for implementations of json-patch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors