Skip to content
Snippets Groups Projects
Commit 76c428db authored by Justin Ehlert's avatar Justin Ehlert
Browse files

Alias primitive types in definitions

parent f5fcdb03
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,10 @@ module.exports = function(grunt) {
} else {
grunt.log.writeln('ERROR '.red + 'Cannot find alias for: ' + path + ' (' + schema.allOf[0].$ref + ')');
}
} else if( Schemas.isPrimitiveType(schema.type) ) {
// For simple types in definitions, alias them
context.aliases[path] = schema;
delete defs[k];
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment