Skip to content

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

Closed
wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #6730 thanks to this comment from @GuilhemN.

@HeahDude HeahDude added this to the 2.7 milestone Aug 1, 2017
Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

Copy link
Contributor

@GuilhemN GuilhemN left a 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!

@@ -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)
Copy link
Contributor

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?

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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

associative arrays?

`!!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
Copy link
Contributor

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?

* 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/``)
Copy link
Contributor

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

* 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>``);
Copy link
Contributor

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?


The following YAML features are not supported by the Symfony Yaml component:

* Structures and multi-documents (``---`` and ``...`` markers);
Copy link
Contributor

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?

@javiereguiluz
Copy link
Member Author

I've fixed all the reported issues. @GuilhemN thanks for your review.

* 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/``)
Copy link
Member

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"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks!

@xabbuh
Copy link
Member

xabbuh commented Sep 15, 2017

Thank you @javiereguiluz.

xabbuh added a commit that referenced this pull request Sep 15, 2017
…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
@xabbuh xabbuh closed this Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants