function parse ( content ? ) { const schema = typeof content === 'string' && content . trim ( ) ; if ( ! schema ) { return null ; } const result = schema . match ( /\((\w+)\)\s+(\w+)/ ) ; if ( result === null || result . length < 3 ) { throw new Error ( 'Invalid schema definition. Required format is `@apiSchema (<GROUP_NAME>) <SCHEMA_NAME>`' ) ; } const group = result [ 1 ] ; return { group , name : result [ 2 ] , } ; } /**
 * Exports
 */ module . exports = { parse , path : 'local.schemas' , method : 'push' , } ;