|
|
@ -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; |
|
|
|