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

docs: updated wrong section name in NAMING_FORMATTER in constraint docs for all languages #1688

Merged

Conversation

officialasishkumar
Copy link
Contributor

@officialasishkumar officialasishkumar commented Dec 25, 2023

Description

Updated NAME_FORMATTER in constraint docs for all languages

Related Issue

Fixes #1678

Checklist

  • The code follows the project's coding standards and is properly linted (npm run lint).
  • Tests have been added or updated to cover the changes.
  • Documentation has been updated to reflect the changes.
  • All tests pass successfully locally.(npm run test).

Additional Notes

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Copy link

netlify bot commented Dec 25, 2023

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit d22bc5c
🔍 Latest deploy log https://app.netlify.com/sites/modelina/deploys/658c503057864e00089618b1

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@officialasishkumar
Copy link
Contributor Author

@devilkiller-ag Please take a look!

@@ -11,7 +11,7 @@ These are the constraints that is applied to model naming. The `Rule key` is wha
|NO_NUMBER_START_CHAR|No numbers as starting characters|Default behavior is pre pending `number_` in front of the first character|
|NO_EMPTY_VALUE|No empty values|Default behavior is to use `empty` as name. |
|NO_RESERVED_KEYWORDS|No reserved keywords|TypeScript has a list of reserved keywords ([see the full list here](../../src/generators/typescript/Constants.ts))|
|NAMING_FORMATTER|Must be formatted equally|Model name is formatted using pascal case|
|NAMING_FORMATTER|Must be formatted equally|Property name is formatted using pascal case|
Copy link
Member

Choose a reason for hiding this comment

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

This section here is actually for the Model naming formatted 🙂 So this needs to be reverted. The other section is correct 👍

Remember to propagate it across languages 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @jonaslagoni, Thanks for the review! I made the necessary changes.

@coveralls
Copy link

coveralls commented Dec 25, 2023

Pull Request Test Coverage Report for Build 7340096141

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.297%

Totals Coverage Status
Change from base Build 7340080101: 0.0%
Covered Lines: 5865
Relevant Lines: 6193

💛 - Coveralls

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

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

Missed that part of the section is changed for enum keys not property name 🙂

@@ -34,7 +34,7 @@ These are the constraints that is applied to enum keys. The `Rule key` is what y
|NO_NUMBER_START_CHAR|No numbers as starting characters|Default behavior is pre pending `number_` in front of the first character|
|NO_EMPTY_VALUE|No empty values|Default behavior is to use `empty` as name. |
|NO_RESERVED_KEYWORDS|No reserved keywords|C# has a list of reserved keywords ([see the full list here](../../src/generators/csharp/Constants.ts))|
|NAMING_FORMATTER|Must be formatted equally|Model name is formatted using pascal case|
|NAMING_FORMATTER|Must be formatted equally|Property name is formatted using pascal case|
Copy link
Member

Choose a reason for hiding this comment

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

This one here is for the enum keys and how they are formatted, not the property name 🙂 Same applies for all the constraints.

Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

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

Nice, thanks @officialasishkumar 👍

@jonaslagoni
Copy link
Member

/rtm

@jonaslagoni jonaslagoni merged commit 1ebfd0e into asyncapi:master Dec 27, 2023
13 checks passed
@jonaslagoni
Copy link
Member

@all-contributors please add @officialasishkumar for docs

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

8.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link
Contributor

@jonaslagoni

I've put up a pull request to add @officialasishkumar! 🎉

@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 3.0.0-next.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 2.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

[Docs Bug 🐞 report]: wrong section name in NAMING_FORMATTER in constraint docs for all languages
4 participants