[TypeSpec-Clean] Updates for OpenAi.Inference#23970
[TypeSpec-Clean] Updates for OpenAi.Inference#23970markcowl merged 1 commit intoAzure:mainfrom markcowl:tsp-clean-oaiinf
Conversation
|
Hi, @markcowl Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com |
Swagger Validation Report
|
| Rule | Message |
|---|---|
import-not-found |
Couldn't resolve import "@azure-tools/typespec-client-generator-core" Location: specification/cognitiveservices/ContentSafety/routes.tsp#L2 |
invalid-ref |
Namespace Azure doesn't have member ClientGenerator Location: specification/cognitiveservices/ContentSafety/routes.tsp#L12 |
unknown-identifier |
Unknown identifier Cadl Location: specification/cognitiveservices/OpenAI.Authoring/model.routes.tsp#L9 |
unknown-identifier |
Unknown identifier Cadl Location: specification/cognitiveservices/OpenAI.Authoring/model.routes.tsp#L10 |
unknown-identifier |
Unknown identifier Cadl Location: specification/cognitiveservices/OpenAI.Authoring/finetune.tsp#L93 |
unknown-decorator |
Unknown decorator Location: specification/cognitiveservices/OpenAI.Authoring/finetune.tsp#L93 |
unknown-identifier |
Unknown identifier route Location: specification/cognitiveservices/OpenAI.Authoring/model.routes.tsp#L27 |
unknown-decorator |
Unknown decorator Location: specification/cognitiveservices/OpenAI.Authoring/model.routes.tsp#L27 |
unknown-identifier |
Unknown identifier get Location: specification/cognitiveservices/OpenAI.Authoring/model.routes.tsp#L28 |
unknown-decorator |
Unknown decorator Location: specification/cognitiveservices/OpenAI.Authoring/model.routes.tsp#L28 |
MissingExamplesDirectory |
"details":"The 'examples' directory is missing in the typespec folder specification/cognitiveservices/OpenAI.Authoring, please ensure the 'examples' is added in the PR." |
MissingExamplesDirectory |
"details":"The 'examples' directory is missing in the typespec folder specification/cognitiveservices/OpenAI.Inference, please ensure the 'examples' is added in the PR." |
SwaggerNotExistInPRBranch |
"details":"The generated swagger file 2022-12-01/openapi.json from typespec specification/cognitiveservices/OpenAI.Inference is not on the branch." |
SwaggerNotExistInPRBranch |
"details":"The generated swagger file 2023-03-15-preview/openapi.json from typespec specification/cognitiveservices/OpenAI.Inference is not on the branch." |
| "details":"The configuration 'azure-resource-provider-folder' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/AnomalyDetector, please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'." |
|
| "details":"The configuration 'output-file' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Authoring, please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'." |
|
| "details":"The configuration 'azure-resource-provider-folder' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Authoring, please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'." |
|
| "details":"The configuration 'output-file' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Inference, please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'." |
|
| "details":"The configuration 'azure-resource-provider-folder' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Inference, please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'." |
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Swagger Generation Artifacts
|
Generated ApiView
|
| - "@azure-tools/typespec-autorest" | ||
| - "@azure-tools/cadl-apiview" | ||
| # - "@azure-tools/typespec-autorest" | ||
| # - "@azure-tools/cadl-apiview" |
There was a problem hiding this comment.
There is currently no config for typespec-autorest, so I don't think it will output any swagger? Once we add config, should it output to this folder?
There was a problem hiding this comment.
If this started with a new api-version, that would be the case. As it is, this older api-version is very unlikely to match the swagger in that folder (though it would hopefully be sematically equivalent)
There was a problem hiding this comment.
This change causes the CI pipeline to "pass", but it's only because no emitter is run:
+ pushd specification/cognitiveservices/OpenAI.Inference
+ npx tsp compile .
TypeSpec compiler v0.43.0
Diagnostics were reported during compilation:
warning emitter-not-found: Emitter with name @azure-tools/typespec-csharp is not found.
warning emitter-not-found: Emitter with name @azure-tools/typespec-java is not found.
Found 2 warnings.
No emitter was configured, no output was generated. Use `--emit <emitterName>` to pick emitter or specify it in the typespec config.
Do we want specs in the repo with no emitters configured? What is the scenario for this?
There was a problem hiding this comment.
It looks like this is here purely for client generation. If we can agree on where to emit the swagger, it would be good to emit it there
There was a problem hiding this comment.
I'm fine merging this PR as-is. Later we will need to decide what to do with specs that are client-only (don't emit swagger).
| - "@azure-tools/typespec-autorest" | ||
| - "@azure-tools/cadl-apiview" | ||
| # - "@azure-tools/typespec-autorest" | ||
| # - "@azure-tools/cadl-apiview" |
There was a problem hiding this comment.
This change causes the CI pipeline to "pass", but it's only because no emitter is run:
+ pushd specification/cognitiveservices/OpenAI.Inference
+ npx tsp compile .
TypeSpec compiler v0.43.0
Diagnostics were reported during compilation:
warning emitter-not-found: Emitter with name @azure-tools/typespec-csharp is not found.
warning emitter-not-found: Emitter with name @azure-tools/typespec-java is not found.
Found 2 warnings.
No emitter was configured, no output was generated. Use `--emit <emitterName>` to pick emitter or specify it in the typespec config.
Do we want specs in the repo with no emitters configured? What is the scenario for this?
Uh oh!
There was an error while loading. Please reload this page.