use schemas module as validation middleware
flatten API module files