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: render patternProperties for TS class and interface #270

Merged

Conversation

jonaslagoni
Copy link
Member

Description
This PR renders a pattern properties property for both class and interface presets.

Related issue(s)
Partly solves #154

@coveralls
Copy link

coveralls commented Jun 23, 2021

Pull Request Test Coverage Report for Build 974006892

  • 21 of 21 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 94.685%

Totals Coverage Status
Change from base Build 971516580: 0.05%
Covered Lines: 1334
Relevant Lines: 1361

💛 - Coveralls

test/blackbox/docs/dummy.json Outdated Show resolved Hide resolved
Copy link
Member

@magicmatatjahu magicmatatjahu left a comment

Choose a reason for hiding this comment

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

One thing, but overall LGTM. We must remember about proper serialization for pattern properties and additional properties in #262 issue. At the moment we save mentioned keywords to collection but in JSON everything is flattened.

src/helpers/NameHelpers.ts Outdated Show resolved Hide resolved
@jonaslagoni
Copy link
Member Author

At the moment we save mentioned keywords to collection but in JSON everything is flattened.

Yep, that's right. Gonna add it to the description once this is merged.

@sonarqubecloud
Copy link

Kudos, SonarCloud 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
1.9% 1.9% Duplication

Copy link
Member

@magicmatatjahu magicmatatjahu left a comment

Choose a reason for hiding this comment

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

LGTM! :)

@jonaslagoni jonaslagoni merged commit bc5c24b into asyncapi:master Jun 28, 2021
@jonaslagoni jonaslagoni deleted the feature/render_ts_patternProperties branch June 28, 2021 14:11
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.15.0 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants