Skip to content

Instantly share code, notes, and snippets.

@arnested
Last active June 29, 2020 15:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnested/703a4a7a387e3ae88906e65d3f4713d0 to your computer and use it in GitHub Desktop.
Save arnested/703a4a7a387e3ae88906e65d3f4713d0 to your computer and use it in GitHub Desktop.
JsonPatch:
description: A JSON Schema describing a JSON Patch
type: array
items:
$ref: '#/definitions/JsonPatchOperation'
JsonPatchOperation:
type: object
description: A JSON patch document as defined by RFC 6902
required:
- op
- path
properties:
op:
type: string
description: The operation to be performed
enum:
- add
- remove
- replace
- move
- copy
- test
path:
type: string
description: A JSON pointer to the property being affected
value:
type: object
description: 'The value to add, replace or test.'
from:
description: A JSON Pointer path pointing to the locatoin to move/copy from.
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment