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);
314314
315315If you want to tolerate invalid data or improve mapping performance you can specify ` skipValidation ` flag in processing ` Context `
316316
317- ```
317+ ``` php
318318$schema = Schema::object();
319319$schema->setProperty('one', Schema::integer());
320320$schema->properties->one->minimum = 5;
@@ -331,7 +331,7 @@ $this->assertSame(4, $res->one);
331331
332332If you want to map data to a different class you can register mapping at top level of your importer structure.
333333
334- ```
334+ ``` php
335335class CustomSwaggerSchema extends SwaggerSchema
336336{
337337 public static function setUpProperties($properties, JsonBasicSchema $ownerSchema)
@@ -344,7 +344,7 @@ class CustomSwaggerSchema extends SwaggerSchema
344344
345345Or specify it in processing context
346346
347- ```
347+ ``` php
348348$context = new Context();
349349$context->objectItemClassMapping[Schema::className()] = CustomSchema::className();
350350$schema = SwaggerSchema::schema()->in(json_decode(
You can’t perform that action at this time.
0 commit comments