mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-16 12:15:10 +00:00
fix(api): add a newline to openapi.json
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -32,7 +32,8 @@ class OpenApi extends Command
|
|||||||
echo $process->output();
|
echo $process->output();
|
||||||
|
|
||||||
$yaml = file_get_contents('openapi.yaml');
|
$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);
|
file_put_contents('openapi.json', $json);
|
||||||
echo "Converted OpenAPI YAML to JSON.\n";
|
echo "Converted OpenAPI YAML to JSON.\n";
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -11300,4 +11300,4 @@
|
|||||||
"description": "Teams"
|
"description": "Teams"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user