fix(api): add a newline to openapi.json
This commit is contained in:
parent
5d54bc1c96
commit
25ccde83fa
2 changed files with 3 additions and 2 deletions
|
|
@ -32,7 +32,8 @@ public function handle()
|
||||||
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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11300,4 +11300,4 @@
|
||||||
"description": "Teams"
|
"description": "Teams"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue