Skip to content

Commit

Permalink
[http-spec] Update Versioning/Removed Project And Removed Type/Model/…
Browse files Browse the repository at this point in the history
…Templated (#5217)

Fixed the two issues mentioned in
[Issue5216](#5216), upgraded
the code for Versioning/Removed, and removed the Type/Model/Templated
code that has already been reverted in Cadl Ranch.

Fix #5216
  • Loading branch information
mcgallan authored Dec 9, 2024
1 parent f132db1 commit b654807
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 268 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@typespec/http-specs"
---

update code in versioning/removed and removed type/model/templated.
114 changes: 43 additions & 71 deletions packages/http-specs/spec-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -4360,77 +4360,6 @@ Expected input body:
}
```

### Type_Model_Templated_float32Type

- Endpoint: `put /type/model/templated/float32ValuesType`

Expected input body:

```json
{
"kind": "Float32Values",
"values": [0.5],
"value": 0.5
}
```

Expected response body:

```json
{
"kind": "Float32Values",
"values": [0.5],
"value": 0.5
}
```

### Type_Model_Templated_int32Type

- Endpoint: `put /type/model/templated/int32ValuesType`

Expected input body:

```json
{
"kind": "Int32Values",
"values": [1234],
"value": 1234
}
```

Expected response body:

```json
{
"kind": "Int32Values",
"values": [1234],
"value": 1234
}
```

### Type_Model_Templated_numericType

- Endpoint: `put /type/model/templated/numericType`

Expected input body:

```json
{
"kind": "Int32Values",
"values": [1234],
"value": 1234
}
```

Expected response body:

```json
{
"values": [1234],
"value": 1234
}
```

### Type_Model_Usage_input

- Endpoint: `get /type/model/usage/input`
Expand Down Expand Up @@ -7436,6 +7365,49 @@ Expected request body:
{ "prop": "foo" }
```

### Versioning_Removed_modelV3

- Endpoint: `post /versioning/removed/api-version:{version}/v3`

path: "/versioning/removed/api-version[:]v1/v3"
Expected request body:

```json
{ "id": "123", "enumProp": "enumMemberV1" }
```

Expected response body:

```json
{ "id": "123", "enumProp": "enumMemberV1" }
```

path: "/versioning/removed/api-version[:]v2preview/v3"
Expected request body:

```json
{ "id": "123" }
```

Expected response body:

```json
{ "id": "123" }
```

path: "/versioning/removed/api-version[:]v2/v3"
Expected request body:

```json
{ "id": "123", "enumProp": "enumMemberV1" }
```

Expected response body:

```json
{ "id": "123", "enumProp": "enumMemberV1" }
```

### Versioning_Removed_v2

- Endpoint: `post /versioning/removed/api-version:{version}/v2`
Expand Down
130 changes: 0 additions & 130 deletions packages/http-specs/specs/type/model/templated/main.tsp

This file was deleted.

66 changes: 0 additions & 66 deletions packages/http-specs/specs/type/model/templated/mockapi.ts

This file was deleted.

Loading

0 comments on commit b654807

Please sign in to comment.