Browse Source

just messin' about with urls

pull/1/head
Cerys 5 months ago
parent
commit
e6c6204333
  1. 9
      src/SchemaBuilder/SchemaBuilder.php

9
src/SchemaBuilder/SchemaBuilder.php

@ -95,6 +95,15 @@ class SchemaBuilder
$propertyName = $value;
continue;
}
if($key == "ValidSchemas")
{
foreach($value as $validSchema)
{
$temp = explode(separator: "\\", string: $validSchema);
$propertySchema["@ValidSchemas"] = "http://localhost/Schemas/V2/" . $temp[array_key_last(array: $temp)] . ".json";
}
continue;
}
if(self::VerifyField($key, $value, $validKeys[1]))
$propertySchema["@" . self::PascalCaseToSnakeCase(input: $key)] = $value;

Loading…
Cancel
Save