UNPKG

dazzling-fiction

Version:

Fictional facts generator based on a markdown fiction dialect

75 lines (74 loc) 2.26 kB
{ "$schema": "http://json-schema.org/draft-04/schema#", "id": "/", "type": "object", "title": "Global configuration for the dazzling fiction dialect", "description": "Configuration of curies and default values for the fict command", "name": "/", "properties": { "outputFormat": { "id": "outputFormat", "type": "string", "minLength": 1, "title": "Output format", "description": "The output format should be either csv or json", "name": "outputFormat", "enum": [ "json", "csv" ] }, "curies": { "id": "curies", "type": "array", "title": "List of curies", "description": "The curies help to create a mapping between a real world url and a logic name", "name": "curies", "items": { "id": "0", "type": "object", "title": "Curie definition", "description": "Description of rules for a specific curie", "name": "0", "properties": { "startsWith": { "id": "startsWith", "type": "string", "minLength": 1, "title": "Expected start string", "description": "When the start string is found the rules will apply", "name": "startsWith" }, "prefix": { "id": "prefix", "type": "string", "minLength": 1, "title": "Prefix to apply to uri", "description": "Prefix that will be concatenated if the rule is triggered", "name": "prefix" }, "suffix": { "id": "suffix", "type": "string", "minLength": 1, "title": "Suffix to apply to uri", "description": "Suffix that will be concatenated if the rule is triggered", "name": "suffix" }, "contentType": { "id": "contentType", "type": "string", "minLength": 1, "title": "Content type", "description": "Content type returned by the web service", "name": "contentType", "enum": [ "application/json", "text/plain" ] } } } } } }