johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel (Jira)" <j...@apache.org>
Subject [jira] [Updated] (JOHNZON-304) createDiff source empty array
Date Mon, 13 Apr 2020 14:36:00 GMT

     [ https://issues.apache.org/jira/browse/JOHNZON-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel updated JOHNZON-304:
---------------------------
    Description: 
If you have an empty array in a JSON object, createDiff will not identify the add operation
from empty to a new entry in the array. But the other way around it will identify the remove
operation

 

Issue

!image-2020-03-13-16-38-38-617.png!

 

Correct

!image-2020-03-13-16-39-11-260.png!

 

readValues code

!image-2020-04-13-15-35-25-437.png!

  was:
If you have an empty array in a JSON object, createDiff will not identify the add operation
from empty to a new entry in the array. But the other way around it will identify the remove
operation

 

Issue

!image-2020-03-13-16-38-38-617.png!

 

Correct

!image-2020-03-13-16-39-11-260.png!


> createDiff source empty array
> -----------------------------
>
>                 Key: JOHNZON-304
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-304
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.3
>            Reporter: Daniel
>            Priority: Critical
>         Attachments: image-2020-03-13-16-38-38-617.png, image-2020-03-13-16-39-11-260.png,
image-2020-04-13-15-35-25-437.png
>
>
> If you have an empty array in a JSON object, createDiff will not identify the add operation
from empty to a new entry in the array. But the other way around it will identify the remove
operation
>  
> Issue
> !image-2020-03-13-16-38-38-617.png!
>  
> Correct
> !image-2020-03-13-16-39-11-260.png!
>  
> readValues code
> !image-2020-04-13-15-35-25-437.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message