Files
whetstone_DSL/schemas/methods/generateFromAST.schema.json

36 lines
952 B
JSON
Raw Normal View History

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://whetstone-dsl.org/schemas/methods/generateFromAST.schema.json",
"title": "generateFromAST",
"description": "Generate code from the current AST",
"type": "object",
"properties": {
"request": {
"type": "object",
"properties": {
"language": {
"type": "string",
"description": "The target language (optional, uses default if not specified)"
}
},
"additionalProperties": false
},
"response": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The generated code"
},
"language": {
"type": "string",
"description": "The language of the generated code"
}
},
"required": ["code", "language"],
"additionalProperties": false
}
},
"required": ["request", "response"]
}