Skip to content

Commit

Permalink
fix: update plugin manifest dev (#11394)
Browse files Browse the repository at this point in the history
* fix: generate based on new schema

* fix: manifest

* test: ut

* test: ut
  • Loading branch information
yuqizhou77 authored Apr 17, 2024
1 parent f1179c9 commit 74378f5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ describe("teamsApp/createAppPackage", async () => {
runtimes: [
{
type: "OpenApi",
auth: { type: "none" },
auth: { type: "None" },
spec: { url: "test\\openai.yml" },
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("pluginManifestUtils", () => {
runtimes: [
{
type: "OpenApi",
auth: { type: "none" },
auth: { type: "None" },
spec: {
url: "openapi.yaml",
},
Expand Down Expand Up @@ -224,7 +224,7 @@ describe("pluginManifestUtils", () => {
runtimes: [
{
type: "OpenApi",
auth: { type: "none" },
auth: { type: "None" },
spec: {
url: "",
},
Expand Down
2 changes: 1 addition & 1 deletion packages/manifest/src/pluginManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export interface RuntimeObjectOpenapi {
[k: string]: unknown;
}
export interface AuthObject {
type: "none" | "oAuthPluginVault" | "apiKeyPluginVault";
type: "None" | "OAuthPluginVault" | "ApiKeyPluginVault";
reference_id?: string;
[k: string]: unknown;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/spec-parser/src/manifestUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class ManifestUpdater {
apiPlugin.runtimes.push({
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: specRelativePath,
Expand Down
30 changes: 15 additions & 15 deletions packages/spec-parser/test/manifestUpdater.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -283,7 +283,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -428,7 +428,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -568,7 +568,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -718,7 +718,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -868,7 +868,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -1060,7 +1060,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec2.yaml",
Expand All @@ -1070,7 +1070,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -1128,7 +1128,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec2.yaml",
Expand Down Expand Up @@ -1264,7 +1264,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -1417,7 +1417,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -1475,7 +1475,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -1620,7 +1620,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -1772,7 +1772,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down Expand Up @@ -1847,7 +1847,7 @@ describe("updateManifestWithAiPlugin", () => {
{
type: "OpenApi",
auth: {
type: "none",
type: "None",
},
spec: {
url: "spec/outputSpec.yaml",
Expand Down

0 comments on commit 74378f5

Please sign in to comment.