flipt-io / flipt

Enterprise-ready, GitOps enabled, CloudNative feature management solution
https://flipt.io
GNU General Public License v3.0
3.83k stars 218 forks source link

[Bug]: JSON import issue #3636

Closed kvnhmn closed 1 day ago

kvnhmn commented 1 day ago

Bug Description

If you import an exported .json. You'll get an error, because of the first line in the json, which is a comment.

Version Info

v1.51.0

Search

Steps to Reproduce

Export Flags as JSON then import it

Expected Behavior

No response

Additional Context

No response

erka commented 1 day ago

This is a minimal backup file which allows to reproduce the issue

# exported by Flipt (v1.51.1) on 2024-11-21T14:37:32Z

{"version":"1.4","namespace":{"key":"default","name":"Default","description":"Default namespace"},"flags":[{"key":"flag1","name":"flag1","type":"VARIANT_FLAG_TYPE","enabled":false}]}