-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Generate SDK based on TypeSpec 0.15.6 (with stream-style-serialization=false to some lib) #39287
Conversation
...entintelligence/src/main/java/com/azure/ai/documentintelligence/models/OperationDetails.java
Outdated
Show resolved
Hide resolved
...s/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4DomainResource.java
Outdated
Show resolved
Hide resolved
One major issue is from text-translation (if this is the only remaining block, I would change it to stream-style-serialization=false) |
* default scoring formula that uses the number of job labels that the worker labels match, as well as the number | ||
* of label selectors the worker labels match and/or exceed using a logistic function | ||
* (https://en.wikipedia.org/wiki/Logistic_function). | ||
* Define a scoring rule to use, when calculating a score to determine the best worker. If not set, will use a default scoring formula that uses the number of job labels that the worker labels match, as well as the number of label selectors the worker labels match and/or exceed using a logistic function (https://en.wikipedia.org/wiki/Logistic_function). |
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.
Seems Javadoc formatting broke?
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.
Does checkstyle no longer check char per line on Javadoc/comment?
I thought previously checkstyle would fail if line over 120 (exclude a few exceptions that line break not possible).
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.
It should, but I'll need to check if there is a suppression that is including too much to be skipped.
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.
I think the line wrap on Javadoc comment works on the new release 0.15.6.
Here is just comment, and line wrap not taking effect.
import com.azure.core.credential.KeyCredential; | ||
import com.azure.core.credential.TokenCredential; | ||
import java.net.MalformedURLException; | ||
import java.net.URL; |
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.
Hmmm, something seems off with formatting. I'll take a look into why this is happening
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.
Is it the order of the "import"?
I guess part of it is via partial-update, when java-parser merge the imports from existing file and imports from generate file.
The part on formatting seems that it no longer order the imports.
{ | ||
"ignore": true, | ||
"code": "java.annotation.removed", | ||
"package": "com.azure.ai.contentsafety.models", | ||
"annotationType": "com.fasterxml.jackson.annotation.JsonProperty", | ||
"justification": "Migrate to azure-json." | ||
}, | ||
{ | ||
"ignore": true, | ||
"code": "java.annotation.removed", | ||
"package": "com.azure.ai.contentsafety.models", | ||
"annotationType": "com.fasterxml.jackson.annotation.JsonCreator", | ||
"justification": "Migrate to azure-json." | ||
} |
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.
Suppress revapi on removal of Jackson annotations, currently only for contentsafety -- the GA lib.
fix Azure/autorest.java#2662
spec PR Azure/azure-rest-api-specs#28305 -- disabled stream-style-serialization for 6 libs
include migrate to stream-style-serialization for 4 libs:
skip openai
skip easm
Will create separate task for them (either update to latest typespec, or try migrate to stream-style-serialization which need a new test recording)
Link #38569
apiview for contentsafety
#39287 (comment)
diff
API added
TextBlocklist createOrUpdateTextBlocklist(String name, TextBlocklist options)
.It is JSON Merge Patch API that is supported under stream-style-serialization.
@zhaiyutong Please take a review. I may need your help to run the live test (or help me with the env that runs it) and a follow-up release.
apiview for communication-messages
https://apiview.dev/Assemblies/Review/6562e5ee918f497cba32cbf009b4de95/e81ad5b30e934034b274badd1404e691?diffRevisionId=beebd3ccefc94828975b409514c235c6&doc=False&diffOnly=True
This module is not migrated to stream-style-serialization.
These added "Kind" classes corresponds to the discriminator properties.
@arifibrahim4 Please take a review.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines