Skip to content

Commit

Permalink
Merge pull request #12749 from OfficeDev/hui/version-schema
Browse files Browse the repository at this point in the history
fix: update schema version
  • Loading branch information
MSFT-yiz authored Nov 19, 2024
2 parents 2d82de0 + 1127d3e commit 00ecbb1
Show file tree
Hide file tree
Showing 27 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion packages/spec-parser/src/manifestUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class ManifestUpdater {
} else {
apiPlugin = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "",
description_for_human: "",
namespace: "",
Expand Down
54 changes: 27 additions & 27 deletions packages/spec-parser/test/manifestUpdater.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -205,7 +205,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -372,7 +372,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -530,7 +530,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -671,7 +671,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -861,7 +861,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -1111,7 +1111,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -1284,7 +1284,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -1433,7 +1433,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -1572,7 +1572,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -1716,7 +1716,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -1848,7 +1848,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -2009,7 +2009,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -2165,7 +2165,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -2292,7 +2292,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -2427,7 +2427,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -2550,7 +2550,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "<Please add description of the plugin>",
Expand Down Expand Up @@ -2734,7 +2734,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "<Please add description of the plugin>",
Expand Down Expand Up @@ -3518,7 +3518,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -3650,7 +3650,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -3738,7 +3738,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -4013,7 +4013,7 @@ describe("updateManifestWithAiPlugin", () => {
};
const originalPluginManifest = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand All @@ -4033,7 +4033,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -4179,7 +4179,7 @@ describe("updateManifestWithAiPlugin", () => {
};
const originalPluginManifest = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand All @@ -4199,7 +4199,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down Expand Up @@ -4350,7 +4350,7 @@ describe("updateManifestWithAiPlugin", () => {
};
const originalPluginManifest = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand All @@ -4370,7 +4370,7 @@ describe("updateManifestWithAiPlugin", () => {

const expectedPlugins: PluginManifestSchema = {
$schema: ConstantString.PluginManifestSchema,
schema_version: "v2.1",
schema_version: "v2.2",
name_for_human: "Original Name",
namespace: "originalname",
description_for_human: "My API description",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}",
"description": "Declarative agent created with Teams Toolkit",
{{#FileFunction}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}",
"description": "Declarative agent created with Teams Toolkit",
{{#FileFunction}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"namespace": "repairs",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"namespace": "repairs",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"namespace": "repairs",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"namespace": "repairs",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}",
"description": "Declarative agent created with Teams Toolkit",
"instructions": "You are a declarative agent and were created with Team Toolkit. You should start every response and answer to the user with \"Thanks for using Teams Toolkit to create your declarative agent!\\n\" and then answer the questions and help the user."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"namespace": "repairs",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}${{APP_NAME_SUFFIX}}",
"description": "This GPT helps you with finding car repair records.",
"instructions": "You will help the user find car repair records assigned to a specific person, the name of the person should be provided by the user. The user will provide the name of the person and you will need to understand the user's intent and provide the car repair records assigned to that person. You can only access and leverage the data from the 'repairPlugin' action.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"namespace": "repairs",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}${{APP_NAME_SUFFIX}}",
"description": "This declarative agent helps you with finding car repair records.",
{{#FileFunction}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"namespace": "repairs",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}${{APP_NAME_SUFFIX}}",
"description": "This declarative agent helps you with finding car repair records.",
{{#FileFunction}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"namespace": "repairs",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}${{APP_NAME_SUFFIX}}",
"description": "This declarative agent helps you with finding car repair records.",
{{#FileFunction}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"namespace": "repairs",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"description_for_human": "Track your repair records",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.2/schema.json",
"version": "v1.0",
"version": "v1.2",
"name": "{{appName}}${{APP_NAME_SUFFIX}}",
"description": "This GPT helps you with finding car repair records.",
"instructions": "You will help the user find car repair records assigned to a specific person, the name of the person should be provided by the user. The user will provide the name of the person and you will need to understand the user's intent and provide the car repair records assigned to that person. You can only access and leverage the data from the 'repairPlugin' action.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json",
"schema_version": "v2.1",
"schema_version": "v2.2",
"namespace": "repairs",
"name_for_human": "{{appName}}${{APP_NAME_SUFFIX}}",
"description_for_human": "Track your repair records",
Expand Down
Loading

0 comments on commit 00ecbb1

Please sign in to comment.