Skip to content

[ai-vision-image-analysis] README sample issues #31491

Open

Description

It looks that the samples are copied from C#? For Rest Level Client (RLC) we don't have constructors to create client instances. We use the factory/builder method instead. Looks that the package has correct samples, but the example snippets are untested and wrong. For example,

const client = new ImageAnalysisClient(endpoint, credential);

Sample snippets in README.md should be valid and are expected to work with minimal effort after copying and pasting them into a project.

To get the benefits of build and run samples, please refer to template package for how we could use a snippets.spec.ts and the dev-tool's update-snippets command

it("new_configurationclient", function () {

```ts snippet:new_configurationclient

"update-snippets": "dev-tool run build-package && dev-tool run update-snippets"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Image AnalysisService AttentionWorkflow: This issue is responsible by Azure service team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions