codegen - added generator_status

master
Niclas Thobaben 2021-09-28 17:10:45 +02:00
parent a81e47ae0e
commit 1a1b54cf0f
1 changed files with 36 additions and 5 deletions

View File

@ -54,6 +54,19 @@
"description": "A template, which is applied for each template which can then be access inside another template. Templates with this type do not create files."
}
]
},
"generator_status": {
"description": "Status of the generator.",
"values": [
{
"name": "private",
"description": "This generator can not be seen or used publicly."
},
{
"name": "published",
"description": "This generator can be seen and used publicly."
}
]
}
},
"interfaces": {},
@ -178,6 +191,14 @@
"name": "content",
"type": "string",
"description": "A (mustache) template string for creating the actual file content."
},
{
"name": "created",
"type": "date-time-iso8601"
},
{
"name": "updated",
"type": "date-time-iso8601"
}
]
},
@ -240,6 +261,10 @@
"name": "languages",
"type": "[string]",
"required": false
},
{
"name": "status",
"type": "generator_status"
}
]
},
@ -255,11 +280,9 @@
"type": "generator_info"
},
{
"name": "published",
"type": "boolean",
"required": false,
"default": false,
"description": "Marks the generator as public which allows it to be included in apibuilder."
"name": "status",
"type": "generator_status",
"description": "Status of the generator."
},
{
"name": "primitives",
@ -271,6 +294,14 @@
"name": "templates",
"type": "[template]",
"description": "All assigned templates of this generator."
},
{
"name": "created",
"type": "date-time-iso8601"
},
{
"name": "updated",
"type": "date-time-iso8601"
}
]
},