Skip to content

Commit

Permalink
Fix qlkube schema generation
Browse files Browse the repository at this point in the history
Remove underscores from schema
  • Loading branch information
QcFe authored May 28, 2024
1 parent 5f8d88b commit bfa3c53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qlkube/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ async function main() {
app.use(compression());
app.get('/schema', (req, res) => {
res.setHeader('content-type', 'text/plain');
res.send(printSchema(schema));
res.send(
printSchema(schema)
.split('\n')
.filter(l => l.trim() != '_') // remove empties enums
.join('\n')
);
});
app.get('/healthz', (req, res) => {
res.sendStatus(200);
Expand Down

0 comments on commit bfa3c53

Please sign in to comment.