Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-zh committed Nov 24, 2023
1 parent da2d170 commit d02bddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Merger/SchemaMerger.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private function removeSchemaLevel(string $embeddedDefinition): string
$arraySchema = json_decode($embeddedDefinition, true);
unset($arraySchema['schema_level']);

return json_encode($arraySchema) ?? '';
return json_encode($arraySchema, JSON_THROW_ON_ERROR | JSON_PRESERVE_ZERO_FRACTION);
}

/**
Expand Down

0 comments on commit d02bddf

Please sign in to comment.