以下はhttps://jsonschema.net/#/によって生成されたjsonスキーマです。必要に応じて編集することができます。マングースのスキーマの場合は、ここでマングーススタイルでスキーマの例があるhttps://github.com/topliceanu/mongoose-gen
{
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "http://example.com/example.json",
"type": "object",
"properties": {
"folderName": {
"$id": "/properties/folderName",
"type": "string",
"title": "The Foldername Schema.",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"team 4"
]
},
"tag": {
"$id": "/properties/tag",
"type": "string",
"title": "The Tag Schema.",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"search"
]
},
"ismainFolder": {
"$id": "/properties/ismainFolder",
"type": "boolean",
"title": "The Ismainfolder Schema.",
"description": "An explanation about the purpose of this instance.",
"default": false,
"examples": [
true
]
},
"innerFolder": {
"$id": "/properties/innerFolder",
"type": "array",
"items": {
"$id": "/properties/innerFolder/items",
"type": "object",
"properties": {
"parentfolderId": {
"$id": "/properties/innerFolder/items/properties/parentfolderId",
"type": "null",
"title": "The Parentfolderid Schema.",
"description": "An explanation about the purpose of this instance.",
"default": null,
"examples": [
null
]
},
"ismainFolder": {
"$id": "/properties/innerFolder/items/properties/ismainFolder",
"type": "boolean",
"title": "The Ismainfolder Schema.",
"description": "An explanation about the purpose of this instance.",
"default": false,
"examples": [
false
]
},
"foldername": {
"$id": "/properties/innerFolder/items/properties/foldername",
"type": "string",
"title": "The Foldername Schema.",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"Onkar 11"
]
},
"subinnerFolder": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder",
"type": "array",
"items": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items",
"type": "object",
"properties": {
"parentfolderId": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/parentfolderId",
"type": "null",
"title": "The Parentfolderid Schema.",
"description": "An explanation about the purpose of this instance.",
"default": null,
"examples": [
null
]
},
"ismainFolder": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/ismainFolder",
"type": "boolean",
"title": "The Ismainfolder Schema.",
"description": "An explanation about the purpose of this instance.",
"default": false,
"examples": [
false
]
},
"foldername": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/foldername",
"type": "string",
"title": "The Foldername Schema.",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"Onkar 11"
]
},
"thirdSubFolder": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/thirdSubFolder",
"type": "array",
"items": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/thirdSubFolder/items",
"type": "object",
"properties": {
"parentfolderId": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/thirdSubFolder/items/properties/parentfolderId",
"type": "null",
"title": "The Parentfolderid Schema.",
"description": "An explanation about the purpose of this instance.",
"default": null,
"examples": [
null
]
},
"ismainFolder": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/thirdSubFolder/items/properties/ismainFolder",
"type": "boolean",
"title": "The Ismainfolder Schema.",
"description": "An explanation about the purpose of this instance.",
"default": false,
"examples": [
false
]
},
"foldername": {
"$id": "/properties/innerFolder/items/properties/subinnerFolder/items/properties/thirdSubFolder/items/properties/foldername",
"type": "string",
"title": "The Foldername Schema.",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"Onkar 11"
]
}
}
}
}
}
}
}
}
}
}
}
}
json-schemaを使用していますか? –