Skip to content

json-diff cli never return exit code 1 in shell #88

@neokree

Description

@neokree

In my pipeline I was using json-diff to monitor different languages files.
Now with the latest versions I always get success even if there are missing keys between files.

json-diff ....
 {
   container_form: {
+    required_fields: "The name of the {entity}, the warehouse and the unit are required fields"
   }
 }
echo $?
#=> 0

Is it possible to have the exit code not 0 when json-diff found some differences between files, like it was before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions