Skip to content

Instantly share code, notes, and snippets.

@JonDotsoy
Last active July 2, 2019 20:15
Show Gist options
  • Save JonDotsoy/e070f06f2927eb800d24604589700b21 to your computer and use it in GitHub Desktop.
Save JonDotsoy/e070f06f2927eb800d24604589700b21 to your computer and use it in GitHub Desktop.
convert-schema.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Used to convert to parse files.",
"additionalItems": false,
"additionalProperties": false,
"required": [
"$schema",
"properties"
],
"properties": {
"$schema": {
"type": "string",
"format": "uri",
"enum": [
"https://bit.do/convert-schema-json#"
]
},
"description": {
"type": "string",
"description": "Describes the use of the schema"
},
"properties": {
"type": "object",
"description": "Define the properties to transform",
"additionalProperties": {
"type": "object",
"additionalProperties": true,
"description": "Title used to refer to the name of the column.",
"required": [
"title",
"type"
],
"properties": {
"type": {
"type": "string",
"description": "Define the transformation mechanism. You can use null, boolean, integer, number, json, string.",
"enum": [
"null",
"boolean",
"integer",
"number",
"json",
"string"
]
},
"title": {
"title": "string",
"description": "Set the title used to obtain the value as a reference."
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment