Skip to content

Commit

Permalink
.Net OpenAPI -> OpenApi Naming Change (#4100)
Browse files Browse the repository at this point in the history
Resolves #3765
  • Loading branch information
RogerBarreto committed Dec 9, 2023
1 parent 1c1da87 commit 78a4333
Show file tree
Hide file tree
Showing 49 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Other SK packages available at nuget.org:
OpenXML, etc.
4. **Microsoft.SemanticKernel.Plugins.MsGraph**: Microsoft Graph Plugin: access your
tenant data, schedule meetings, send emails, etc.
5. **Microsoft.SemanticKernel.Plugins.OpenAPI**: OpenAPI Plugin.
5. **Microsoft.SemanticKernel.Plugins.OpenApi**: OpenAPI Plugin.
6. **Microsoft.SemanticKernel.Plugins.Web**: Web Plugin: search the web, download
files, etc.
7. **Microsoft.SemanticKernel.Reliability.Polly**: Extension for http resiliency.
2 changes: 1 addition & 1 deletion dotnet/SK-dotnet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{F4243136
nuget\NUGET.md = nuget\NUGET.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Functions.OpenAPI", "src\Functions\Functions.OpenAPI\Functions.OpenAPI.csproj", "{F2A1F81E-700E-4C0E-B021-B9EF29AA20BD}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Functions.OpenApi", "src\Functions\Functions.OpenApi\Functions.OpenApi.csproj", "{F2A1F81E-700E-4C0E-B021-B9EF29AA20BD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "connectors", "connectors", "{0247C2C9-86C3-45BA-8873-28B0948EDC0C}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<ProjectReference Include="..\..\src\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
<ProjectReference Include="..\..\src\Plugins\Plugins.Core\Plugins.Core.csproj" />
<ProjectReference Include="..\..\src\Plugins\Plugins.Memory\Plugins.Memory.csproj" />
<ProjectReference Include="..\..\src\Functions\Functions.OpenAPI\Functions.OpenAPI.csproj" />
<ProjectReference Include="..\..\src\Functions\Functions.OpenApi\Functions.OpenApi.csproj" />
<ProjectReference Include="..\..\src\Functions\Functions.Grpc\Functions.Grpc.csproj" />
<ProjectReference Include="..\..\src\Connectors\Connectors.Memory.Qdrant\Connectors.Memory.Qdrant.csproj" />
<ProjectReference Include="..\..\src\Plugins\Plugins.Web\Plugins.Web.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Jira Open API Schema

We have our own curated version of the Jira Open API schema because the one available online
at https://raw.githubusercontent.com/microsoft/PowerPlatformConnectors/dev/certified-connectors/JIRA/apiDefinition.swagger.json,
doesn't follow OpenAPI specification for all of its operations. For example CreateIssueV2, its body param does not describe properties
and so we can't build the body automatically.
We have our own curated version of the Jira Open API schema because the one available online
at https://raw.githubusercontent.com/microsoft/PowerPlatformConnectors/dev/certified-connectors/JIRA/apiDefinition.swagger.json,
doesn't follow OpenAPI specification for all of its operations. For example CreateIssueV2, its body param does not describe properties
and so we can't build the body automatically.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
<ProjectReference Include="..\Functions.Grpc\Functions.Grpc.csproj" />
<ProjectReference Include="..\Functions.Markdown\Functions.Markdown.csproj" />
<ProjectReference Include="..\Functions.OpenAPI\Functions.OpenAPI.csproj" />
<ProjectReference Include="..\Functions.OpenApi\Functions.OpenApi.csproj" />
<ProjectReference Include="..\Functions.Yaml\Functions.Yaml.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion dotnet/src/IntegrationTests/IntegrationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<ProjectReference Include="..\Planners\Planners.OpenAI\Planners.OpenAI.csproj" />
<ProjectReference Include="..\Plugins\Plugins.Core\Plugins.Core.csproj" />
<ProjectReference Include="..\Plugins\Plugins.Memory\Plugins.Memory.csproj" />
<ProjectReference Include="..\Functions\Functions.OpenAPI\Functions.OpenAPI.csproj" />
<ProjectReference Include="..\Functions\Functions.OpenApi\Functions.OpenApi.csproj" />
<ProjectReference Include="..\Plugins\Plugins.Web\Plugins.Web.csproj" />
<ProjectReference Include="..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Plugins.OpenAPI.OpenAI;
using Microsoft.SemanticKernel.Plugins.OpenApi.OpenAI;
using Microsoft.SemanticKernel.Planning;
using Microsoft.SemanticKernel.Plugins.Core;
using Microsoft.SemanticKernel.Plugins.Web;
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/Planners/Planners.OpenAI/Planners.OpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<ItemGroup>
<ProjectReference Include="..\..\Connectors\Connectors.OpenAI\Connectors.OpenAI.csproj" />
<ProjectReference Include="..\..\Functions\Functions.OpenAPI\Functions.OpenAPI.csproj" />
<ProjectReference Include="..\..\Functions\Functions.OpenApi\Functions.OpenApi.csproj" />
<ProjectReference Include="..\..\Functions\Functions.Yaml\Functions.Yaml.csproj" />
<ProjectReference Include="..\..\SemanticKernel.Abstractions\SemanticKernel.Abstractions.csproj" />
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
### Running the OpenApi syntax example
### Running the OpenAPI syntax example

1. In a terminal, navigate to `semantic_kernel/python/samples/kernel-syntax-examples/openapi_example`.

2. Run `poetry install` followed by `poetry shell` to enter poetry's virtual environment.

3. Start the server by running `python openapi_server.py`.

4. In another terminal, do steps 1 & 2. Then, run `python openapi_client.py`, which will register a skill representing the API defined in openapi.yaml
4. In another terminal, do steps 1 & 2. Then, run `python openapi_client.py`, which will register a skill representing the API defined in openapi.yaml

0 comments on commit 78a4333

Please sign in to comment.