UNPKG

somod-schema

Version:

Schema to validate yaml files in somod modules

24 lines (23 loc) 830 B
var parameters = { $schema: "http://json-schema.org/draft-07/schema", $id: "https://somod.json-schema.sodaru.com/parameters/index.json", title: "JSON Schema for Parameters in SOMOD", type: "object", additionalProperties: false, properties: { parameters: { type: "object", additionalProperties: { $ref: "http://json-schema.org/draft-07/schema" }, propertyNames: { pattern: "^[a-zA-Z][a-zA-Z0-9-_.]*$", maxLength: 128, minLength: 4, errorMessage: { pattern: "Parameter Name must contain only alphaNumerics, dot(.), hyphen(-), and underscore(_). must start with alphabet" } }, maxProperties: 64 } } }; export default parameters;