Skip to content

Instantly share code, notes, and snippets.

@hwhang0917
Created March 14, 2025 02:10
Show Gist options
  • Select an option

  • Save hwhang0917/4d319920bb9d54f1b4b03f55cb63c5f0 to your computer and use it in GitHub Desktop.

Select an option

Save hwhang0917/4d319920bb9d54f1b4b03f55cb63c5f0 to your computer and use it in GitHub Desktop.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/SubMessage",
"$defs": {
"File": {
"properties": {
"title": {
"type": "string"
},
"fileName": {
"type": "string"
},
"filePath": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"title",
"fileName",
"filePath"
]
},
"Image": {
"properties": {
"title": {
"type": "string"
},
"fileName": {
"type": "string"
},
"thumbnailPath": {
"type": "string"
},
"filePath": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"title",
"fileName",
"thumbnailPath",
"filePath"
]
},
"SubMessage": {
"properties": {
"type": {
"type": "string"
},
"addImages": {
"items": {
"$ref": "#/$defs/Image"
},
"type": "array"
},
"deleteImages": {
"items": {
"type": "string"
},
"type": "array"
},
"addFiles": {
"items": {
"$ref": "#/$defs/File"
},
"type": "array"
},
"deleteFiles": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"type"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment