Skip to content
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft.azure/autorest.testserver",
"version": "3.0.22",
"version": "3.0.23",
"description": "Autorest test server.",
"main": "dist/cli/cli.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/test-routes/any-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app.category("vanilla", () => {
status: 200,
body: {
contentType: "application/json",
rawContent: `"foo"`,
rawContent: `"anything"`,
},
};
});
Expand Down
22 changes: 11 additions & 11 deletions swagger/any-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"paths": {
"/anything/object": {
"get": {
"operationId": "get",
"operationId": "getObject",
"description": "Basic get that returns an object as anything. Returns object { 'message': 'An object was successfully returned' }",
"responses": {
"200": {
Expand All @@ -21,11 +21,11 @@
}
},
"put": {
"operationId": "put",
"operationId": "putObject",
"description": "Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything else to get an object error.",
"parameters": [
{
"name": "putObject",
"name": "input",
"description": "Pass in {'foo': 'bar'} for a 200, anything else for an object error",
"in": "body",
"required": true,
Expand All @@ -41,8 +41,8 @@
},
"/anything/string": {
"get": {
"operationId": "get",
"description": "Basic get that returns an string as anything. Returns string 'anything'",
"operationId": "getString",
"description": "Basic get that returns an string as anything. Returns string 'foo'",
"responses": {
"200": {
"description": "Returns object { 'message': 'An object was successfully returned' }",
Expand All @@ -51,12 +51,12 @@
}
},
"put": {
"operationId": "put",
"operationId": "putString",
"description": "Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to get an object error.",
"parameters": [
{
"name": "putObject",
"description": "Pass in {'foo': 'bar'} for a 200, anything else for an object error",
"name": "input",
"description": "Pass in 'anything' for a 200, anything else for an object error",
"in": "body",
"required": true,
"schema": { "$ref": "#/definitions/Anything" }
Expand All @@ -71,7 +71,7 @@
},
"/anything/array": {
"get": {
"operationId": "get",
"operationId": "getArray",
"description": "Basic get that returns an array as anything. Returns string ['foo', 'bar']",
"responses": {
"200": {
Expand All @@ -81,11 +81,11 @@
}
},
"put": {
"operationId": "put",
"operationId": "putArray",
"description": "Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else to get an object error.",
"parameters": [
{
"name": "putObject",
"name": "input",
"description": "Pass in ['foo', 'bar'] for a 200, anything else for an object error",
"in": "body",
"required": true,
Expand Down