Skip to content
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

JSON & YAML parsers now add table comments. #149

Merged
merged 2 commits into from
Oct 9, 2022

Conversation

djerius
Copy link
Contributor

@djerius djerius commented Oct 4, 2022

  1. The JSON and YAML parsers didn't add table comments.
  2. The procedure producers for JSON & YAML created a single string out of multi-line comments, rather than an array of comments.

…s method in wrong context

The JSON and YAML Producer view_procedure methods called the
procedure's comments() method in scalar context.  However, in scalar
context this method returns a string composed of the
concatenation of comments. Since the JSON and YAML formats support
arrays, their producers should output the comments as arrays to avoid
loss of information.

This is also consistent with the other calls to comment() elsewhere in
the code.
Copy link
Contributor

@rabbiveesh rabbiveesh left a comment

Choose a reason for hiding this comment

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

Looks great!

@rabbiveesh rabbiveesh merged commit dbc2b6d into dbsrgits:master Oct 9, 2022
@djerius
Copy link
Contributor Author

djerius commented Oct 9, 2022

Thanks!

@djerius djerius deleted the json-yaml-table-comments branch October 9, 2022 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants