Modular generation for typespec-todo#2927
Merged
MaryGao merged 10 commits intoAzure:mainfrom Dec 12, 2024
Merged
Conversation
timovv
commented
Nov 25, 2024
|
|
||
| // @public (undocumented) | ||
| export interface TodoItemsUpdateBodyParam { | ||
| create: (item: TodoItem, options?: TodoItemsCreateOptionalParams) => Promise<{ |
Member
Author
There was a problem hiding this comment.
Response is an anonymous model but should be a reference to the named model? investigate
Member
Author
There was a problem hiding this comment.
This happens in quite a few places
Member
There was a problem hiding this comment.
This is because of there is an @visibilty(create) and this caused we failed to get effective model there, if the visibility create is removed, this should be fixed.
Confirmed with Renhe as below
No need to support visibility create for now. The spec will be updated.
timovv
commented
Nov 25, 2024
| model TodoItem { | ||
| /** The item's unique id */ | ||
| @key id: safeint; | ||
| @visibility("read") @key id: safeint; |
Member
Author
There was a problem hiding this comment.
@visibility not respected
Member
There was a problem hiding this comment.
read-only should be respected and this is the only case we supported now(codegen code).
Closed
MaryGao
reviewed
Nov 27, 2024
MaryGao
approved these changes
Dec 12, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.