Open
Description
Hello!
Thanks for the great package! Unfortunately I've encountered an error building a complex schema.
Given the following json schema:
{
"type": "object",
"description": "Description with $dollar sign",
"properties": {
"foo": {
"type": "string"
}
}
The generated code fails with the following error:
Undefined variable: dollar
The reason behind this is that the dollar sign is not escaped:
public static function setUpProperties($properties, Schema $ownerSchema)
{
$properties->foo = Schema::string();
$ownerSchema->type = Schema::OBJECT;
$ownerSchema->description = "Description with $dollar sign";
}
Excepted output would look similar to this:
public static function setUpProperties($properties, Schema $ownerSchema)
{
$properties->foo = Schema::string();
$ownerSchema->type = Schema::OBJECT;
$ownerSchema->description = "Description with \$dollar sign";
}
Metadata
Metadata
Assignees
Labels
No labels