File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ $this->assertSame('my-value', $myMeta->name);
314
314
315
315
If you want to tolerate invalid data or improve mapping performance you can specify ` skipValidation ` flag in processing ` Context `
316
316
317
- ```
317
+ ``` php
318
318
$schema = Schema::object();
319
319
$schema->setProperty('one', Schema::integer());
320
320
$schema->properties->one->minimum = 5;
@@ -331,7 +331,7 @@ $this->assertSame(4, $res->one);
331
331
332
332
If you want to map data to a different class you can register mapping at top level of your importer structure.
333
333
334
- ```
334
+ ``` php
335
335
class CustomSwaggerSchema extends SwaggerSchema
336
336
{
337
337
public static function setUpProperties($properties, JsonBasicSchema $ownerSchema)
@@ -344,7 +344,7 @@ class CustomSwaggerSchema extends SwaggerSchema
344
344
345
345
Or specify it in processing context
346
346
347
- ```
347
+ ``` php
348
348
$context = new Context();
349
349
$context->objectItemClassMapping[Schema::className()] = CustomSchema::className();
350
350
$schema = SwaggerSchema::schema()->in(json_decode(
You can’t perform that action at this time.
0 commit comments