Skip to content
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

"incompatible-versioned-reference" failing in branch typespec-next #2680

Closed
mikeharder opened this issue Nov 17, 2023 · 0 comments · Fixed by #2684
Closed

"incompatible-versioned-reference" failing in branch typespec-next #2680

mikeharder opened this issue Nov 17, 2023 · 0 comments · Fixed by #2684
Assignees

Comments

@mikeharder
Copy link
Contributor

mikeharder commented Nov 17, 2023

Likely introduced by #2662.

Executing rule: Compile
run command:npx --no tsp compile . --warn-as-error
run command:npx --no tsp compile client.tsp --no-emit --warn-as-error
TypeSpec compiler v0.51.0-dev.4

Diagnostics were reported during compilation:

/mnt/vss/_work/1/s/specification/cognitiveservices/OpenAI.Inference/routes/completions.tsp:38:4 - error @typespec/versioning/incompatible-versioned-reference: 'Azure.OpenAI.getChatCompletions' was added in version 'v2023_05_15' but referencing type 'Azure.OpenAI.FunctionDefinition' added in version 'v2023_07_01_Preview'.
> 38 | op getChatCompletions is ResourceAction<
     |    ^^^^^^^^^^^^^^^^^^
/mnt/vss/_work/1/s/specification/cognitiveservices/OpenAI.Inference/routes/completions.tsp:38:4 - error @typespec/versioning/incompatible-versioned-reference: 'Azure.OpenAI.getChatCompletions' was added in version 'v2023_05_15' but referencing type 'Azure.OpenAI.FunctionCallPreset' added in version 'v2023_07_01_Preview'.
> 38 | op getChatCompletions is ResourceAction<
     |    ^^^^^^^^^^^^^^^^^^
/mnt/vss/_work/1/s/specification/cognitiveservices/OpenAI.Inference/routes/completions.tsp:38:4 - error @typespec/versioning/incompatible-versioned-reference: 'Azure.OpenAI.getChatCompletions' was added in version 'v2023_05_15' but referencing type 'Azure.OpenAI.FunctionName' added in version 'v2023_07_01_Preview'.
> 38 | op getChatCompletions is ResourceAction<
     |    ^^^^^^^^^^^^^^^^^^
/mnt/vss/_work/1/s/specification/cognitiveservices/OpenAI.Inference/routes/completions.tsp:38:4 - error @typespec/versioning/incompatible-versioned-reference: 'Azure.OpenAI.getChatCompletions' was added in version 'v2023_05_15' but referencing type 'Azure.OpenAI.AzureChatExtensionConfiguration' added in version 'v2023_08_01_Preview'.
> 38 | op getChatCompletions is ResourceAction<
     |    ^^^^^^^^^^^^^^^^^^

Found 4 errors.

https://dev.azure.com/azure-sdk/public/_build/results?buildId=3273171&view=logs&j=f2650786-f3c8-5076-65bc-1ba9b64fac25&t=dbe5b552-8159-5dbd-6d0f-1a1649e01974&l=311

@mikeharder mikeharder changed the title Linter rule "incompatible-versioned-reference" failing in branch typespec-next "incompatible-versioned-reference" failing in branch typespec-next Nov 17, 2023
tjprescott added a commit to tjprescott/typespec that referenced this issue Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants