Skip to content

Commit 676f319

Browse files
committed
Fixed issue #128 - Fixed content type construction parameter generation.
1 parent 5d86982 commit 676f319

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

example/PetStoreClient/doc/petstore3.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@
125125
"type": "string",
126126
"enum": [
127127
"application/json",
128-
"approved",
129-
"delivered"
128+
"application/xml"
130129
]
131130
}
132131
}

example/PetStoreClient/src/Request/AddPetRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class AddPetRequest implements RequestInterface
1717
{
1818
public const CONTENT_TYPE_APPLICATION_JSON = 'application/json';
1919

20-
public const CONTENT_TYPE_APPROVED = 'approved';
21-
22-
public const CONTENT_TYPE_DELIVERED = 'delivered';
20+
public const CONTENT_TYPE_APPLICATION_XML = 'application/xml';
2321

2422
private string $contentType;
2523

example/petstore3.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@
125125
"type": "string",
126126
"enum": [
127127
"application/json",
128-
"approved",
129-
"delivered"
128+
"application/xml"
130129
]
131130
}
132131
}

0 commit comments

Comments
 (0)