mirror of
https://github.com/tiennm99/coolify.git
synced 2026-06-23 03:36:15 +00:00
fix(api): add a newline to openapi.json
This commit is contained in:
@@ -32,7 +32,8 @@ class OpenApi extends Command
|
||||
echo $process->output();
|
||||
|
||||
$yaml = file_get_contents('openapi.yaml');
|
||||
$json = json_encode(Yaml::parse($yaml), JSON_PRETTY_PRINT);
|
||||
|
||||
$json = json_encode(Yaml::parse($yaml), JSON_PRETTY_PRINT)."\n";
|
||||
file_put_contents('openapi.json', $json);
|
||||
echo "Converted OpenAPI YAML to JSON.\n";
|
||||
}
|
||||
|
||||
+1
-1
@@ -11300,4 +11300,4 @@
|
||||
"description": "Teams"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user