apidoc-plugin-schema
apidoc-plugin-schema copied to clipboard
Status of `allOf` support
I can see from the README that support for allOf is pending.
It looks like the (partial?) support is implemented, but commented out:
// NOTE this is not proper jsonschema, likely in v5 w/ merge
// var merge = require('lodash/fp/merge');
/*function mergeAllOf(schema) {
// TODO update https://github.com/json-schema/json-schema/issues/116
if (exists(Object.keys(schema),'allOf')) {
for(var i = schema.allOf.length; i--;) {
schema.allOf[i] = mergeAllOf(schema.allOf[i]);
var required = schema.required || [];
required = required.concat(schema.allOf[i].required || []);
schema = merge(schema, schema.allOf[i]);
if (required.length) schema.required = required;
}
delete schema.allOf;
}
return schema;
}*/
What is the status of allOf support? Are there blockers upstream?
I would be more than willing to add support for it, if it is needed, as this is a pretty important feature for my team.