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

refactor: items interpretation #202

Merged
merged 39 commits into from
May 20, 2021

Conversation

jonaslagoni
Copy link
Sponsor Member

@jonaslagoni jonaslagoni commented May 18, 2021

Description
This PR adds the refactoring of the interpretation for items.

It changes the entire perspective, to instead of adding simplification functions per CommonModel property, we process the JSON Schema keywords which then affects the CommonModel in some way.

It adds

  • InterpretationItems, to interpret the items schema keyword.

Files this PR is supposed to replace

Todo

  • Refactor docs
  • Solve code smells
  • Add logging to the process
  • Inspect tests
  • Rename to transformer

Related issue(s)
Blocked by #184

@coveralls
Copy link

coveralls commented May 19, 2021

Coverage Status

Coverage increased (+0.06%) to 95.023% when pulling 49348fb on jonaslagoni:feature/simplify_items into 92185d7 on asyncapi:master.

@jonaslagoni jonaslagoni marked this pull request as ready for review May 19, 2021 13:29
@jonaslagoni jonaslagoni changed the title refactor: items simplification refactor: items interpretation May 19, 2021
magicmatatjahu
magicmatatjahu previously approved these changes May 20, 2021
src/models/CommonModel.ts Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented May 20, 2021

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.8% 1.8% Duplication

@jonaslagoni
Copy link
Sponsor Member Author

Solved merge conflict and added missing interpreter integration 🤦

@jonaslagoni
Copy link
Sponsor Member Author

Thanks!

@jonaslagoni jonaslagoni merged commit 2e2a70b into asyncapi:master May 20, 2021
@jonaslagoni jonaslagoni deleted the feature/simplify_items branch May 20, 2021 11:59
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.6.4 🎉

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.

None yet

4 participants