Commit efd0f2a
authored
feat: OpenAPI: Fix nova examples (#1312)
When generating the nova AZ detail schema we are adding examples to the
`hosts` object, but we are doing it wrong:
- We are adding a dictionary instead of a list, which is what the plural
form of example indicates and also what we can see in the OpenAPI spec
documentation [1].
- The contents of the example are wrong, it shouldn't have the `JSON
request` key, as we can see in the upstream docs [2].
This patch fixes the examples to be correct.
[1]: https://swagger.io/specification/#model-with-example
[2]: https://docs.openstack.org/api-ref/compute/#get-detailed-availability-zone-information
Change-Id: Ic694ee083f55d44d0ecdb8a72561e24ec1b70583
Changes are triggered by https://review.opendev.org/9518841 parent 988bce9 commit efd0f2a
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11634 | 11634 | | |
11635 | 11635 | | |
11636 | 11636 | | |
11637 | | - | |
11638 | | - | |
| 11637 | + | |
11639 | 11638 | | |
11640 | 11639 | | |
11641 | 11640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11634 | 11634 | | |
11635 | 11635 | | |
11636 | 11636 | | |
11637 | | - | |
11638 | | - | |
| 11637 | + | |
11639 | 11638 | | |
11640 | 11639 | | |
11641 | 11640 | | |
| |||
0 commit comments