You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Likely introduced by #2662.
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
The text was updated successfully, but these errors were encountered: