-
Notifications
You must be signed in to change notification settings - Fork 259
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
Bring Method
and StatusCode
types from http-types
into typespec
#1937
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Joonas Bergius <[email protected]>
@microsoft-github-policy-service agree |
It looks like the analyze job doesn't like the HTTP methods |
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.
There are licensing issues that need to be addressed first. All three projects from where files were copied are dual-licensed under an MIT license so, at the very least, we need to attribute them. These also shouldn't be in the typespec
crate but under typespec_client_core:http
. We could move them down the stack later, but we can never move them up the stack (after GA, anyway). Better to start further down the stack, which is why typespec
only has error types right now.
I'll make some changes to this as it would probably be easier, but I can start with what you have here. Thank you.
Method
and StatusCode
types from http-types
into typespec
Method
and StatusCode
types from http-types
into typespec
@heaths that sounds great, at the end of the day my main concern here is to be able to address |
I appreciate that, but it seems a lot of crates are unmaintained. What happens when /cc @RickWinter @JeffreyRichter @ronniegeraghty *) Well, mostly strict. For Rust, as opposed to most of our other languages, client APIs may break due to service REST API approved breaks but we'll also shipping 1:1 crate version:service API version. |
Hi @joonas. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
I was hoping to be able to get rid of the
http-types
crate given that it's not actively being updated and one of the dependencies of it's dependencies has an outstanding RUSTSEC advisory (RUSTSEC-2024-0384
).Since
typespec
andtypespec_client_core
are only making use of theMethod
andStatusCode
types, I thought bringing them into thetypescript
crate and using them from there seemed appropriate.Closes #1644