doctoc the readme

This commit is contained in:
Greg Myers
2020-04-05 00:44:20 +01:00
parent 965f14406f
commit a96a466205
2 changed files with 69 additions and 8 deletions

View File

@@ -174,10 +174,10 @@
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/blog"
"$ref": "#/definitions/blog"
},
{
"$ref": "#/components/schemas/flexible_blog"
"$ref": "#/definitions/flexible_blog"
}
]
}
@@ -191,10 +191,10 @@
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/blog"
"$ref": "#/definitions/blog"
},
{
"$ref": "#/components/schemas/flexible_blog"
"$ref": "#/definitions/flexible_blog"
}
]
}
@@ -341,14 +341,36 @@
"x-nullable": true
},
"thumbnail": {
"type": "string"
"type": "string",
"x-nullable": true
}
},
"required": [
"id",
"title",
"content",
"thumbnail"
"title"
]
},
"flexible_blog": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"headline": {
"type": "string"
},
"text": {
"type": "string",
"nullable": true
},
"thumbnail": {
"type": "string",
"nullable": true
}
},
"required": [
"id",
"headline"
]
}
},