UNPKG

@dechamp/express-auto-route

Version:

An express auto route module which allows routes and middleware to be configured via config file.

47 lines 1.06 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/resource", "definitions": { "resource": { "title": "resource", "type": "object", "required": [ "name", "path", "description" ], "additionalProperties": false, "properties": { "uuid": { "$ref": "schema/uuid.schema.json" }, "name": { "type": "string", "title": "Name", "minLength": 2, "maxLength": 60 }, "path": { "type": "string", "title": "Path", "minLength": 1, "pattern": "^\\/[\\w\\-.~%!$&'()*+,;=:@\\/]*$" }, "description": { "type": "string", "title": "Description", "minLength": 1, "maxLength": 254 }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" } } } } }