nova/doc/api_schemas/config_drive.json
Ilya Etingof 69ee625a66 Add JSON schema and test for network_data.json
Added JSON schema defining `network_data.json` contents and
beefed up the MetadataTest functional test cases to use a
real instance instead of a database shell. This way the
tests see real data in the metadata service like a real
network_data.json.

Besides internal Nova consumption, this schema might be
helpful to other tools (such as ironic or Glean) to
validate human-generated `network_data.json` prior to
using it.

Co-Authored-By: Balazs Gibizer <balazs.gibizer@est.tech>
Change-Id: Ie5a5a1fc81c7c2d3f61b72d19de464cfc9dab5ec
2020-02-17 15:35:24 +01:00

31 lines
658 B
JSON

{
"anyOf": [
{
"type": "object",
"properties": {
"meta_data": {
"type": "object"
},
"network_data": {
"type": "object"
},
"user_data": {
"type": [
"object",
"array",
"string",
"null"
]
}
},
"additionalProperties": false
},
{
"type": [
"string",
"null"
]
}
]
}