yaml tags
In YAML, tags are a way to explicitly define the data type of a value.
Normally YAML auto-detects types (like string, int, boolean), but tags let you override or clarify that behavior.
Basic Syntax of YAML Tags
Tags are written using !! before a value:
Integer $ count: !!int 10
Float $ count: !!int 10
boolean $ enabled: !!bool yes
Null $ value: !!null null
String $ name: !!str 12345
No comments:
Post a Comment