File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 77namespace Swaggest \JsonSchema \SwaggerSchema ;
88
99use Swaggest \JsonSchema \Constraint \Properties ;
10- use Swaggest \JsonSchema \Schema ;
10+ use Swaggest \JsonSchema \Schema as BasicSchema ;
1111use Swaggest \JsonSchema \Structure \ClassStructure ;
1212
1313
@@ -23,16 +23,16 @@ class Tag extends ClassStructure {
2323
2424 /**
2525 * @param Properties|static $properties
26- * @param Schema $ownerSchema
26+ * @param BasicSchema $ownerSchema
2727 */
28- public static function setUpProperties ($ properties , Schema $ ownerSchema )
28+ public static function setUpProperties ($ properties , BasicSchema $ ownerSchema )
2929 {
30- $ properties ->name = Schema ::string ();
31- $ properties ->description = Schema ::string ();
30+ $ properties ->name = BasicSchema ::string ();
31+ $ properties ->description = BasicSchema ::string ();
3232 $ properties ->externalDocs = ExternalDocs::schema ();
3333 $ ownerSchema ->type = 'object ' ;
3434 $ ownerSchema ->additionalProperties = false ;
35- $ ownerSchema ->patternProperties ['^x- ' ] = new Schema ();
35+ $ ownerSchema ->patternProperties ['^x- ' ] = new BasicSchema ();
3636 $ ownerSchema ->patternProperties ['^x- ' ]->description = 'Any property starting with x- is valid. ' ;
3737 $ ownerSchema ->required = array (
3838 0 => 'name ' ,
You can’t perform that action at this time.
0 commit comments