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

Add new sourceModels property to model #3191

Merged
merged 6 commits into from
Apr 23, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Apr 18, 2024

resolves #2818

Add a new sourceModels property that keeps track of models used to construct it. sourceModels is an array of a new SoruceModel object which contains metadata on how the model was used:

  • is: model A is B
  • spread: model A {...B}
  • intersection: alias A = B & C

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 18, 2024

All changed packages have been documented.

  • @typespec/compiler
  • @typespec/html-program-viewer
Show changes

@typespec/compiler - fix ✏️

[API] Add new sourceModels property to model

@typespec/html-program-viewer - fix ✏️

Add sourceModels property to model view

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3191/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3191/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add spread source on models
3 participants