Skip to content

Releases: tryAGI/AutoSDK

v0.28.0

05 Mar 06:06
Compare
Choose a tag to compare

Release Notes

Features

  • Generate FromJsonStream methods.
  • Added PropertyData.Example.
  • Added Client.ReadResponseAsString property to enable debugging.
  • Added constructors with all values besides parameterless.
  • Added default/example block to XML documentation.
  • Initial work for System.ComponentModel.Annotations support.
  • Initial support for non-success responses (through exceptions).
  • Added support for default responses.
  • CLI: Use net9 in solution template.
  • Replaced AnyOf JsonConverterFactory with explicit generic converter.
  • Updated to net9.
  • Added additional format support (decimal/char/short/byte).
  • Now HttpClient will try to use HTTP/3.0 or HTTP/2.0 if available.
  • Added authorization methods to client interfaces.
  • Added x-enum-descriptions support.
  • Added Cohere AllOf inheritance/polymorphism support.
  • Added some default JsonSerializerContextTypes.
  • Improved generation for TargetFramework=net9.
  • Now need to mark all SourceGenerator AdditionalFiles with AutoS.
  • ApiExceptions now will show JSON instead of ReasonPhrase for all providers.

Fixes

  • Fixed bug when enum contains duplicates.
  • Removed default headers for Multipart form data.
  • Fixed issue with AnyOf object implicit conversion.
  • Fixed bug with OpenApi31Support for JSON exclusiveMinMax.
  • Use ApiException instead of System.InvalidOperationException in methods.
  • Now error responses have order.
  • Fixed missing XML param doc for required deprecated properties.
  • Fixed XML documentation for <default> tag.
  • Try to use response with schema for Success response if it exists.
  • Fixed mkdocs GitHub Actions template.
  • Now draft PRs will not trigger PR test pipeline.
  • Fixed issue with incorrect ByteArray/String responses in release mode.
  • Fixed issue with Authorization Scheme if it is 'Bearer' instead of 'bearer'.
  • Use net8.0 for CLI.
  • Fixed Discriminator property name for some cases.
  • Fixed CLI.
  • Fixed issue with OpenAI spec.
  • Fixed bug with pattern status codes like 4XX.
  • Fixed serialization issue for some enums.
  • Fixed issues with AllOf polymorphism.
  • Fixed Experimental attribute namespace.
  • Added GenerateEndPointAttributes to reduce code duplication.
  • Fixed OpenAI usage in CLI.
  • Fixed Reverse() bug.
  • Use Microsoft.CodeAnalysis.CSharp 4.3.1 for source generators.
  • Fixed bug with latest Anthropic spec.
  • Fixed nullable enum in query bug.

CLI

  • Added missing PR trigger to CI/CD workflow.
  • Fixed after update.

Full Changelog: v0.27.0...v0.28.0

v0.27.0

30 Oct 13:49
Compare
Choose a tag to compare

What's Changed

Features

•	feat: Added initial OAuth2 support.
•	feat: Added OpenAPI 3.1 built-in support.
•	feat(cli): Use OpenApi31Support in init command.
•	feat: Added IgnoreOpenApiErrors and IgnoreOpenApiWarnings settings.
•	feat: Added OpenAPI 3.1 JSON support.
•	feat: Added generation of AdditionalProperties schemas.
•	feat: Added support for type: any.
•	feat: Additional cases of object generation instead of empty classes.
•	feat: Return string for empty/undefined responses.
•	feat: Added ToJson/FromJson methods to models.
•	feat: Added generation of discriminator classes.
•	feat: Added By separator for MethodAndPath naming convention.
•	feat: Added initial discriminator support.
•	feat: Implemented ComputeDiscriminators.
•	feat: Expose HttpClient.
•	feat: Removed default values (now only used in XML docs).
•	feat: Added Experimental attribute support.
•	feat: Use Discriminator mapping values for naming AnyOf property names.

Fixes

•	fix: Fixed some issue with authorizations.
•	fix: Fixed missing XML docs.
•	fix: Fixed OAuth2 code.
•	fix: Fixed small issues with weaviate spec.
•	fix: Added workaround to bypass spec error in mistral spec.
•	fix: Fixed missing XML clearing for enum XML docs.
•	fix: Fixed CLI builds.
•	fix: Fixed UnixTimestampJsonConverter milliseconds deserialization.
•	fix: Fixed vectara issue with duplicated filename.
•	fix: Fixed invalid method return type for application/octet-stream.
•	fix: Fixed build issues.
•	fix: Fixed OpenAPI 3.1 examples support in JSON.
•	fix: Fixed some schemas to use Dictionary or objects.
•	fix: Fixed issue with langsmith JSON OpenAPI 3.1 spec.
•	fix: Fixed OpenAPI 3.1 JSON support for null types.
•	fix: Fixed array generation when type is null and items are specified.
•	fix: Fixed issue with allOf with nullable: true as one item.
•	fix: Fixed null in enums in OpenAPI 3.1 YAML.
•	fix: Fixed issue with incorrect JsonConverter.
•	fix: Removed nested OneOfs to unblock discriminator.
•	fix: Updated GitHub spec and resolved related issues.
•	fix: Fixed issue with named OneOf JsonConverters.
•	fix: Fixed rare issue with AnyOf deserialization.
•	fix: Fixed CLI issues.
•	fix: Fixed issue with non-letter/non-digit symbols in Tag name.

This release introduces significant feature enhancements, such as expanded OpenAPI 3.1 support, OAuth2 integration, discriminator handling, and additional JSON utilities. It also addresses numerous fixes to ensure stability and correct behavior across various edge cases.

Full Changelog: v0.26.0...v0.27.0

v0.26.0

01 Oct 01:29
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.24.0...v0.26.0

v0.25.0

01 Oct 00:19
Compare
Choose a tag to compare

What's Changed

Features

•	Added Summary MethodNamingConvention.
•	Added support for in: header parameters.
•	Added initial support for enum XML documentation (#30).
•	Added PathBuilder to simplify path/query building.
•	Added support for objects in query parameters.
•	Added Match method for AnyOf/OneOf types.
•	Added native support for AllOf'1 like wrappers.

Full Changelog: v0.24.0...v0.25.0

v0.24.0

10 Sep 14:07
Compare
Choose a tag to compare

v0.23.0

09 Sep 11:03
Compare
Choose a tag to compare

v0.21.1

v0.20.2

31 Aug 01:18
Compare
Choose a tag to compare

v0.20.1

31 Aug 00:44
Compare
Choose a tag to compare

v0.20.0