-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Mention the YAML features not supported by the Yaml component #8249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this!
components/yaml/yaml_format.rst
Outdated
@@ -171,8 +166,8 @@ Collections | |||
----------- | |||
|
|||
A YAML file is rarely used to describe a simple scalar. Most of the time, it | |||
describes a collection. A collection can be a sequence or a mapping of | |||
elements. Both sequences and mappings are converted to PHP arrays. | |||
describes a collection. YAML collections can be a sequence (scalar arrays in PHP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you mean by scalar arrays
. Perhaps numerically-indexed arrays
would be better?
components/yaml/yaml_format.rst
Outdated
describes a collection. A collection can be a sequence or a mapping of | ||
elements. Both sequences and mappings are converted to PHP arrays. | ||
describes a collection. YAML collections can be a sequence (scalar arrays in PHP) | ||
or a mapping of elements (key/value arrays in PHP). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
associative arrays
?
components/yaml/yaml_format.rst
Outdated
`!!bool`, `!!int`, `!!merge`, `!!null`, `!!timestamp`, `!!value`, `!!yaml`; | ||
* Global tags (``TAG`` directive; example: ``%TAG ! tag:example.com,2000:app/``) | ||
and global references to a tag (example: ``!<tag:example.com,2000:app/foo>``); | ||
* Not having a key in a mapping (example: ``{foo, bar}``; use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about Using sequence-like syntax for mapping elements
?
components/yaml/yaml_format.rst
Outdated
* Tagged values as keys; | ||
* The following tags and types: `!!set`, `!!omap`, `!!pairs`, `!!set`, `!!seq`, | ||
`!!bool`, `!!int`, `!!merge`, `!!null`, `!!timestamp`, `!!value`, `!!yaml`; | ||
* Global tags (``TAG`` directive; example: ``%TAG ! tag:example.com,2000:app/``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove globals tags
and just keep TAG directive
components/yaml/yaml_format.rst
Outdated
* The following tags and types: `!!set`, `!!omap`, `!!pairs`, `!!set`, `!!seq`, | ||
`!!bool`, `!!int`, `!!merge`, `!!null`, `!!timestamp`, `!!value`, `!!yaml`; | ||
* Global tags (``TAG`` directive; example: ``%TAG ! tag:example.com,2000:app/``) | ||
and global references to a tag (example: ``!<tag:example.com,2000:app/foo>``); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
global
doesn't feel like the right term... Maybe something like uri-named tags
?
components/yaml/yaml_format.rst
Outdated
|
||
The following YAML features are not supported by the Symfony Yaml component: | ||
|
||
* Structures and multi-documents (``---`` and ``...`` markers); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by structures
?
I've fixed all the reported issues. @GuilhemN thanks for your review. |
components/yaml/yaml_format.rst
Outdated
* Tagged values as keys; | ||
* The following tags and types: `!!set`, `!!omap`, `!!pairs`, `!!set`, `!!seq`, | ||
`!!bool`, `!!int`, `!!merge`, `!!null`, `!!timestamp`, `!!value`, `!!yaml`; | ||
* Tags (``TAG`` directive; example: ``%TAG ! tag:example.com,2000:app/``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one of the spaces needs to be removed between the asterisk and "Tags"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks!
Thank you @javiereguiluz. |
…nent (javiereguiluz) This PR was squashed before being merged into the 2.7 branch (closes #8249). Discussion ---------- Mention the YAML features not supported by the Yaml component This fixes #6730 thanks to [this comment](#6730 (comment)) from @GuilhemN. Commits ------- eeaeac1 Mention the YAML features not supported by the Yaml component
This fixes #6730 thanks to this comment from @GuilhemN.