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

Allow spreading a model that has props added in previous version #3911

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Jul 19, 2024

fix #3639

Allow this scenario


model Base {
  @added(Versions.v1) name: string;
}

@added(Versions.v2)
model Child {
  ...Base;
}

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jul 19, 2024

All changed packages have been documented.

  • @typespec/versioning
Show changes

@typespec/versioning - fix ✏️

Allow spreading a model that has props added in previous version

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@timotheeguerin timotheeguerin added this pull request to the merge queue Jul 23, 2024
Merged via the queue into microsoft:main with commit 10488de Jul 23, 2024
22 checks passed
@timotheeguerin timotheeguerin deleted the allow-spreading-model-previous-version branch July 23, 2024 23:08
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.

Versioned mixin properties cannot be used in a versioned model
3 participants