Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[http-spec] Update Versioning/Removed Project And Removed Type/Model/Templated #5217

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading