Skip to content

Commit cf950b2

Browse files
committed
added url type for example generation
1 parent 2cefcff commit cf950b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/common-utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ export function getSampleValueByType(schemaObj) {
417417
return 0.5;
418418
case 'string':
419419
return (schemaObj.enum ? schemaObj.enum[0] : (schemaObj.pattern ? schemaObj.pattern : "string"))
420+
case 'url':
421+
return 'http://example.com';
420422
case 'byte':
421423
return btoa('string');
422424
case 'binary':

0 commit comments

Comments
 (0)