-
Notifications
You must be signed in to change notification settings - Fork 76
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
Modular generation for typespec-todo #2927
Conversation
timovv
commented
Nov 25, 2024
•
edited by MaryGao
Loading
edited by MaryGao
- support tcgc type for ModelProperty
- remove baseUrl in unbranded client
- remove property if visibility with none.
|
||
// @public (undocumented) | ||
export interface TodoItemsUpdateBodyParam { | ||
create: (item: TodoItem, options?: TodoItemsCreateOptionalParams) => Promise<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Response is an anonymous model but should be a reference to the named model? investigate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens in quite a few places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
...ges/typespec-test/test/todo_non_branded/generated/typespec-ts/review/todo-non-branded.api.md
Outdated
Show resolved
Hide resolved
...ges/typespec-test/test/todo_non_branded/generated/typespec-ts/review/todo-non-branded.api.md
Show resolved
Hide resolved
...ges/typespec-test/test/todo_non_branded/generated/typespec-ts/review/todo-non-branded.api.md
Show resolved
Hide resolved
model TodoItem { | ||
/** The item's unique id */ | ||
@key id: safeint; | ||
@visibility("read") @key id: safeint; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@visibility
not respected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read-only should be respected and this is the only case we supported now(codegen code).