Skip to content

Commit

Permalink
Fix unsupported char type
Browse files Browse the repository at this point in the history
  • Loading branch information
joheredi committed Jul 8, 2024
1 parent fa08f8c commit c38b06c
Show file tree
Hide file tree
Showing 6 changed files with 8,273 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const typespecTypes = new Map<string, string>([
[SchemaType.DateTime, "utcDateTime"],
[SchemaType.UnixTime, "plainTime"],
[SchemaType.String, "string"],
[SchemaType.Char, "string"],
[SchemaType.Time, "plainTime"],
[SchemaType.Uuid, "string"],
[SchemaType.Uri, "url"],
Expand Down
10 changes: 10 additions & 0 deletions packages/extensions/openapi-to-typespec/test/search/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
```yaml
library-name: Search
namespace: Azure.Search
isAzureSpec: true
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/search/data-plane/Azure.Search/readme.md
#tag: package-preview-2023-06
modelerfour:
flatten-payloads: false
deserialize-null-collection-as-null-value: true
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS
* Generated by package: @autorest/openapi-to-typespec
* Version: Not generated in test
* Date: Not generated in test
*/
import "@typespec/rest";
import "@typespec/http";
import "./routes.tsp";

using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;
/**
* Client that can be used to manage and query indexes and documents, as well as
* manage other resources, on a search service.
*/
@service({
title: "SearchClient",
})
@versioned(Versions)
@server(
"{endpoint}",
"Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.",
{
/**
* The name of the index.
*/
indexName: string,

endpoint: string,
}
)
namespace Azure.Search;

/**
* The available API versions.
*/
enum Versions {
/**
* The 2024-07-01 API version.
*/
@useDependency(Azure.Core.Versions.v1_0_Preview_1)
v2024_07_01: "2024-07-01",
}
Loading

0 comments on commit c38b06c

Please sign in to comment.