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

feat: add dart generator. #658

Merged
merged 10 commits into from
Apr 27, 2022

Conversation

rmasarovic
Copy link
Contributor

Description

  • add dart generator for class and enums
  • add json serializer(create annotion for class ,helpers methods, imports for library json_serializable )

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.

@sonarcloud
Copy link

sonarcloud bot commented Feb 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rmasarovic rmasarovic changed the title init dart generator v0.1 feat: add dart generator. Feb 23, 2022
@coveralls
Copy link

coveralls commented Feb 23, 2022

Pull Request Test Coverage Report for Build 2236282726

  • 172 of 199 (86.43%) changed or added relevant lines in 12 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.9%) to 92.085%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/generators/dart/DartGenerator.ts 35 37 94.59%
src/generators/dart/DartRenderer.ts 51 56 91.07%
src/generators/dart/presets/JsonSerializablePreset.ts 10 16 62.5%
src/generators/dart/renderers/EnumRenderer.ts 22 36 61.11%
Totals Coverage Status
Change from base Build 2236265433: -0.9%
Covered Lines: 2804
Relevant Lines: 2902

💛 - Coveralls

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.

Awesome @rmasarovic 🎉

The only thing missing is tests and docs!

Furthermore, we need to add tests to cover at least the current test coverage (93%).

Feel free to ping me if you get stuck!

…ture/dart-generator2

# Conflicts:
#	examples/generate-dart-models/package-lock.json
#	examples/generate-dart-models/package.json
@rmasarovic
Copy link
Contributor Author

@jonaslagoni hi i try to add documentation and tests maybe now it will be good

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.

@jonaslagoni hi i try to add documentation and tests maybe now it will be good

This is so awesome!

I have absolutely no comments for it 🔥

Only a final remark, would you like to champion and maintain the Dart generator or are you only interested in contributing it? 🙂 Feel free to ping me on slack when you have considered it or have any questions 🙇

@jonaslagoni
Copy link
Member

/rtm

@sonarcloud
Copy link

sonarcloud bot commented Apr 27, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jonaslagoni jonaslagoni merged commit 127f4cf into asyncapi:master Apr 27, 2022
@jonaslagoni
Copy link
Member

@all-contributors please add @rmasarovic for code, docs, test, example

@allcontributors
Copy link
Contributor

@jonaslagoni

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

@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.57.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 1.0.0-next.23 🎉

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.

4 participants