flatpak-builder icon indicating copy to clipboard operation
flatpak-builder copied to clipboard

Some boolean value are not recognized in flatpack.yaml

Open lypwig opened this issue 5 years ago • 0 comments

Description of the problem

Yaml accepts many values for booleans, according to the specs:

y|Y|yes|Yes|YES|n|N|no|No|NO |true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF

But it seems that only true and false are recognized by flatpak-builder.

This is probably due to a bad json-to-yaml conversion, since these values are the only ones accepted for json booleans.

Steps to reproduce

Create a flatpak in yaml format with boolean values, such as: run-tests: True. This will outputs a message similar to:

(flatpak-builder:544899): Json-WARNING **: 14:30:01.283: Failed to deserialize "run-tests" property of type "gboolean" for an object of type "BuilderModule"

But nothing when using true or false.

Platform

  • Linux distribution and version: Manjaro
  • Flatpak-builder version: 1.0.9
  • Flatpak version: 1.5.0

lypwig avatar May 06 '20 12:05 lypwig