Skip to content

Commit cb21d44

Browse files
committed
Handle json schema consts in compiler config doc generation
Fixes #5045
1 parent 41766f5 commit cb21d44

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

website/src/compiler-config/CompilerConfig.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ function T({prop, indirections}) {
357357
case 'number':
358358
case 'boolean':
359359
case 'null':
360+
if (prop.const != null) {
361+
return JSON.stringify(prop.const);
362+
}
360363
return prop.type;
361364
case 'integer':
362365
// TODO: Clarify if this needs to be a unint8

0 commit comments

Comments
 (0)