Skip to content

Conversation

simonmeusel
Copy link

See #15
Fixes #12

I've implemented a simple wrapper function for json merge patch to allow arrays.

@coveralls
Copy link

coveralls commented Jul 14, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 3fd5918 on simonmeusel:merge-arrays into d8c8c07 on epoberezkin:master.

@epoberezkin
Copy link
Member

@simonmeusel thanks, I will review over the weekend.

@lakim
Copy link

lakim commented Jan 28, 2019

I would love to see this merged.

It is very cumbersome to merge multiple schemas for now.
Here is my use case:

{
  "$merge": {
    "source": {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    },
    "with": [
      {
        "$ref": "definitions/color.json#/definitions/color"
      },
      {
        "$ref": "definitions/font.json#/definitions/font"
      }
    ]
  }
}

Any help needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants