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

OpenAPI version 3.1.0 is not supported. when creating Copilot Declarative Agent #12476

Open
alexheat opened this issue Sep 28, 2024 · 2 comments
Assignees
Labels

Comments

@alexheat
Copy link

alexheat commented Sep 28, 2024

Describe the bug
When attempting to import an OpenAPI specification file, an error message is displayed stating: "OpenAPI version 3.1.0 is not supported. Use version 3.0.x."

To Reproduce
Steps to reproduce the behavior:

  1. Create new App in the Teams Toolkit
  2. Choose Declarative Agent and then Add Plugin and Start with an OpenAPI Description Document
  3. Browse for a file with OpenAI schema version 3.1.0 (see attached file as a sample)
  4. Upon import I get an error "OpenAPI version 3.1.0 is not supported. Use version 3.0.x."
    image

Expected behavior
Open AI GPTs only support Open API 3.1.0 so in order to import an existing OpenAPI description the Teams Toolkit should support the 3.1.0 schema

Screenshots
If applicable, add screenshots to help explain your problem.

From Open AI GPTs: They don't support OpenAPI 3.0
image

VS Code Extension Information (please complete the following information):

  • OS: Mac
  • Version: v5.9.2024091807

CLI Information (please complete the following information):

  • OS: 14.6.1
  • Version: 3.0.2

Additional context
Sample file for testing attached here: sample.json

{
  "openapi": "3.1.0",
  "info": {
    "title": "Get weather data",
    "description": "Retrieves current weather data for a location.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://weather.example.com"
    }
  ],
  "paths": {
    "/location": {
      "get": {
        "description": "Get temperature for a specific location",
        "operationId": "GetCurrentWeather",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "description": "The city and state to retrieve the weather for",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}
Copy link
Contributor

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Sep 28, 2024
@SLdragon
Copy link
Contributor

Hi, @alexheat , this is a known limitation for Copilot Declarative Agent, because the backend using OpenAPI.NET to parse OpenAPI spec file, which currently only support version < 3.1.0. We will support it once it is ready

Related issue can be found here:
microsoft/OpenAPI.NET#795

For your scenario, if you're not using OpenAPI 3.1.0 features, you can change it to 3.0 for the Copilot Declarative Agent and keep it at 3.1.0 for OpenAI GPTs.

@adashen adashen added TA:Auth Team Area: Auth investigating and removed needs attention This issue needs the attention of a contributor. labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants