Yaml 1.1 says
Canonical:at | PRegexp:at | Y | yes | yes | yes | n | N | no | no | NO | true | True | TRUE | false | False | FALSE | on | On | ON | off | Off | Off
Canonical:
at | P
Regexp:
at | Y | yes | yes | yes | n | N | no | no | NO | true | True | TRUE | false | False | FALSE | on | On | ON | off | Off | Off
Yaml 1.2 says
Definition:Represents the value true / false. In languages ββwithout a native Boolean type (for example, C), it is usually bound to a native integer type, using one for true and zero for false.Canonical form:Either trueor false.
Definition:
Represents the value true / false. In languages ββwithout a native Boolean type (for example, C), it is usually bound to a native integer type, using one for true and zero for false.
Canonical form:
Either trueor false.
true
false
Does this mean that all alternative forms in 1.1 should be interpreted in 1.2 as strings (rather than logical values) in deserialization?
, :
"on" "off", true false YAML 1.2?
, on off (tag:yaml.org,2002:str).
on
off
tag:yaml.org,2002:str
, 1.1 1.2 ( ) ?
, , .
, YAML 1.2 10.2 JSON Schema. :
JSON JSON. YAML , , . .
, JSON true false boolean (tag:yaml.org,2002:bool).
tag:yaml.org,2002:bool
, YAML Core schema, JSON. - " JSON, ".
true, true, true, false, false false .
YAML 1.2 , , -, . "" , , , , .
ruamel.yaml PyYAML ( YAML 1.1 Yes/No/On/Off). , YAML YAML 1.1 ( , %YAML 1.1, . , - , , (.. , 1.2);-).
%YAML 1.1
Source: https://habr.com/ru/post/1669985/More articles:Can I add an image to the d3js chart? - javascriptNode js CSV for JSON (large file) - node.jshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1669982/using-ctypes-to-call-a-function-pointer-that-points-to-a-function-that-is-defined-static&usg=ALkJrhjAfJZr7OEC6ZwgTNfdUTpI9dcU6wnode server works, but localhost refuses to connect - javascriptPython - something faster than 2 nested for loops - performanceDotenv not loading properly - javascriptExpress.js application entry point - javascriptFailed to start appium tests on Android 7.0 - androidAngular 2 with .NET Core - .net.NET Core and Angular 2 Workflow - angularAll Articles