13
13
14
14
namespace ApiPlatform \Tests \OpenApi \Factory ;
15
15
16
- use ApiPlatform \Core \Operation \UnderscorePathSegmentNameGenerator ;
17
16
use ApiPlatform \JsonSchema \Schema ;
18
17
use ApiPlatform \JsonSchema \SchemaFactory ;
19
18
use ApiPlatform \JsonSchema \TypeFactory ;
39
38
use ApiPlatform \OpenApi \Model \ExternalDocumentation ;
40
39
use ApiPlatform \OpenApi \OpenApi ;
41
40
use ApiPlatform \OpenApi \Options ;
42
- use ApiPlatform \PathResolver \CustomOperationPathResolver ;
43
- use ApiPlatform \PathResolver \OperationPathResolver ;
44
41
use ApiPlatform \State \Pagination \PaginationOptions ;
45
42
use ApiPlatform \Tests \Fixtures \DummyFilter ;
46
43
use ApiPlatform \Tests \Fixtures \TestBundle \Dto \OutputDto ;
@@ -180,8 +177,6 @@ public function testInvoke(): void
180
177
(new ApiProperty ())->withBuiltinTypes ([new Type (Type::BUILTIN_TYPE_STRING )])->withDescription ('This is an enum. ' )->withReadable (true )->withWritable (true )->withReadableLink (true )->withWritableLink (true )->withOpenapiContext (['type ' => 'string ' , 'enum ' => ['one ' , 'two ' ], 'example ' => 'one ' ])
181
178
);
182
179
183
- $ operationPathResolver = new CustomOperationPathResolver (new OperationPathResolver (new UnderscorePathSegmentNameGenerator ()));
184
-
185
180
$ filterLocatorProphecy = $ this ->prophesize (ContainerInterface::class);
186
181
$ filters = [
187
182
'f1 ' => new DummyFilter (['name ' => [
@@ -238,7 +233,6 @@ public function testInvoke(): void
238
233
$ propertyMetadataFactory ,
239
234
$ schemaFactory ,
240
235
$ typeFactory ,
241
- $ operationPathResolver ,
242
236
$ filterLocatorProphecy ->reveal (),
243
237
[],
244
238
new Options ('Test API ' , 'This is a test API. ' , '1.2.3 ' , true , 'oauth2 ' , 'authorizationCode ' , '/oauth/v2/token ' , '/oauth/v2/auth ' , '/oauth/v2/refresh ' , ['scope param ' ], [
@@ -259,6 +253,7 @@ public function testInvoke(): void
259
253
'type ' => 'object ' ,
260
254
'description ' => 'This is a dummy ' ,
261
255
'externalDocs ' => ['url ' => 'http://schema.example.com/Dummy ' ],
256
+ 'deprecated ' => false ,
262
257
'properties ' => [
263
258
'id ' => new \ArrayObject ([
264
259
'type ' => 'integer ' ,
0 commit comments