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

Comments of types are deleted #17

Closed
yostools opened this issue Jul 24, 2018 · 2 comments
Closed

Comments of types are deleted #17

yostools opened this issue Jul 24, 2018 · 2 comments

Comments

@yostools
Copy link

Hello Niclas, thank you very much for your great extension.

During the integration into my project, I noticed that comments fields are retained, but the comments of types are lost. Regardless of whether it is a single-line comment ("...") or a multiline comment ("""...""").

In the following example, the comment on the "Comparison operators" is lost and the comment on the "EQ" is retained:

# ==================================================================================================================
# Enums
# ==================================================================================================================

"""
Comparison operators
See [Comparison Query Operators](https://docs.mongodb.com/manual/reference/operator/query-comparison/)
"""
enum ComparisonOperator {
 
  """
  Specifies equality condition. The [$eq](https://docs.mongodb.com/manual/reference/operator/query/eq/) operator 
  matches documents where the value of a field equals the specified value.
  """
  EQ
}

The comments introduced with "#" disappear, which is the intention.

@nicolasdao
Copy link
Owner

Very interesting @yostools. I didn't even know the """ ... """ convention.

I'm on holidays now. I'll integrate that ASAP.

@nicolasdao
Copy link
Owner

Closed with fix #32.

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

No branches or pull requests

2 participants