-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Added OpenAI.Generators.Core.
- Loading branch information
Showing
18 changed files
with
79 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
src/libs/CodeAsOpenApi/Models/MethodData.cs → ...enAI.Generators.Core/Models/MethodData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
using OpenAI.Generators.Core; | ||
|
||
namespace H.Generators; | ||
|
||
public readonly record struct MethodData( | ||
string Name, | ||
string Description, | ||
bool IsAsync, | ||
bool IsVoid, | ||
IReadOnlyCollection<ParameterData> Parameters); | ||
OpenApiSchema Parameters); |
8 changes: 4 additions & 4 deletions
8
...OpenAI.Generators/Models/ParameterData.cs → ...I.Generators.Core/Models/OpenApiSchema.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
namespace H.Generators; | ||
namespace OpenAI.Generators.Core; | ||
|
||
public readonly record struct SchemaData( | ||
public readonly record struct OpenApiSchema( | ||
string Name, | ||
string Description, | ||
string Type, | ||
string SchemaType, | ||
string? Format, | ||
IReadOnlyCollection<string> EnumValues, | ||
IReadOnlyCollection<SchemaData> Properties, | ||
IReadOnlyCollection<SchemaData> ArrayItem, | ||
IReadOnlyCollection<OpenApiSchema> Properties, | ||
IReadOnlyCollection<OpenApiSchema> ArrayItem, | ||
bool IsRequired, | ||
bool IsNullable, | ||
string DefaultValue); |
18 changes: 12 additions & 6 deletions
18
src/libs/CodeAsOpenApi/CodeAsOpenApi.csproj → ...rators.Core/OpenAI.Generators.Core.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<TargetFrameworks>net4.6.2;netstandard2.0;net6.0;net8.0</TargetFrameworks> | ||
<IsPackable>false</IsPackable> | ||
<GenerateDocumentationFile>false</GenerateDocumentationFile> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> | ||
<NoWarn>$(NoWarn);CA1014;CA1031;CA1308</NoWarn> | ||
<NoWarn>$(NoWarn);CA1308</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Label="Global Usings"> | ||
<Using Include="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="IsExternalInit" Version="1.0.3"> | ||
<PackageReference Include="PolySharp" Version="1.14.1"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.1" PrivateAssets="all" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="Serialization\" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.