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!: adds extend in common, meta, and constrained models #1613

Merged
merged 2 commits into from
Nov 18, 2023

Conversation

kennethaasan
Copy link
Collaborator

Description

This is a preparation for adding inheritance with interfaces for Java in #1593

This PR finalizes what has been started regarding the allowInheritance option, and adds extend in the CommonModel, MetaModel, and ConstrainedMetaModel. It also adds logic in the Splitter to split our extended models and set isExtended in the options where this is needed.

Related issue(s)

See also #108.

Copy link

netlify bot commented Nov 16, 2023

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit 33c831a
🔍 Latest deploy log https://app.netlify.com/sites/modelina/deploys/655724d6ce81270008b04f5a

Copy link
Sponsor 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.

Remember the migration guide 😄

Gonna have a closer look within the next 24 hours 👍

src/interpreter/Interpreter.ts Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Nov 17, 2023

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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kennethaasan
Copy link
Collaborator Author

@jonaslagoni, thanks! I added a section in the migration guidelines now. I was trying to make it as general as possible, and will add more specifics for Java in the next PR.

Copy link
Sponsor 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 👍

}
});
```

Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Yea, if we show in the subsequent PRs how that code will look in the different generators, that would be nice 👌

@jonaslagoni jonaslagoni merged commit 0e9f0e7 into asyncapi:next Nov 18, 2023
16 checks passed
@asyncapi-bot
Copy link
Contributor

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

The release is available on:

Your semantic-release bot 📦🚀

jonaslagoni added a commit that referenced this pull request Feb 1, 2024
* feat!: convert to use multi parser (#1587)
* feat!: adds support for duration in java (#1604)
* feat: enable AsyncAPI v3 (#1600)
* fix!: add csharp support for DateTime, TimeSpan, Guid (#1612)
* feat!: adds extend in common, meta, and constrained models (#1613)
* feat!: adds inheritance with interfaces for java (#1593)
* chore: remove duplicate version entry for AsyncAPI processor (#1609)
* feat!: render python union in pydantic in the pre 3.10 way (#1626)
* feat: add file path as input (#1601)
* feat!: add options as parameter to constraints (#1667)
* fix: (un)marshalling tuple and dictionary unwrapping for Typescript (#1717)
* fix: jsonbinpack preset and runtime tests (#1718)
* chore: fix linting
* chore: remove unused directory
* feat!: add useJavascriptReservedKeywords option for TS (#1727)
* feat: enable raw properties for interface (#1729)
* fix: newtonsoft could not handle enum values (#1731)
* chore: update Java runtime tests (#1739)
* fix: edge case where references was incorrect handled for JSON Schema (#1754)
* fix: recursion bug for get nearest dependencies (#1757)

---------

Co-authored-by: Kenneth Aasan <k.aasan@sportradar.com>
Co-authored-by: jano-petras <jano.petras@gmail.com>
Co-authored-by: Nilkanth Parmar <parmarnilkanth@gmail.com>
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.0-next.1 🎉

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.

None yet

3 participants