Re-enable building of nova openapi specs as a voting job
Few schemas changed in nova so that the code is again broken so adapt templates. Change-Id: I129cd24c63cb7cbb996bb4c9b95e0c9fdb6a2c14
This commit is contained in:
parent
471f414492
commit
f8ff329936
@ -250,7 +250,7 @@ class StructFieldResponse(common_rust.StructField):
|
||||
operation_type: str,
|
||||
):
|
||||
macros = set()
|
||||
if self.is_optional:
|
||||
if self.is_optional or self.data_type.type_hint.startswith("Option<"):
|
||||
macros.add("optional")
|
||||
if self.local_name != self.remote_name:
|
||||
macros.add(f'title="{self.remote_name}"')
|
||||
|
@ -37,7 +37,7 @@ struct ResponseData {
|
||||
/// aoaos
|
||||
///
|
||||
#[serde()]
|
||||
#[structable(pretty)]
|
||||
#[structable(optional,pretty)]
|
||||
foo: Option<Value>,
|
||||
}
|
||||
"""
|
||||
|
@ -8,8 +8,7 @@
|
||||
- openstack-tox-py311
|
||||
- codegenerator-openapi-baremetal-tips-with-api-ref
|
||||
- codegenerator-openapi-block-storage-tips-with-api-ref
|
||||
- codegenerator-openapi-compute-tips-with-api-ref:
|
||||
voting: false
|
||||
- codegenerator-openapi-compute-tips-with-api-ref
|
||||
- codegenerator-openapi-dns-tips-with-api-ref
|
||||
- codegenerator-openapi-identity-tips-with-api-ref
|
||||
- codegenerator-openapi-image-tips-with-api-ref
|
||||
@ -26,8 +25,7 @@
|
||||
- openstack-tox-py311
|
||||
- codegenerator-openapi-baremetal-tips-with-api-ref
|
||||
- codegenerator-openapi-block-storage-tips-with-api-ref
|
||||
- codegenerator-openapi-compute-tips-with-api-ref:
|
||||
voting: false
|
||||
- codegenerator-openapi-compute-tips-with-api-ref
|
||||
- codegenerator-openapi-dns-tips-with-api-ref
|
||||
- codegenerator-openapi-identity-tips-with-api-ref
|
||||
- codegenerator-openapi-image-tips-with-api-ref
|
||||
|
@ -53,8 +53,8 @@
|
||||
dependencies:
|
||||
- name: codegenerator-openapi-block-storage-tips-with-api-ref
|
||||
soft: true
|
||||
# - name: codegenerator-openapi-compute-tips-with-api-ref
|
||||
# soft: true
|
||||
- name: codegenerator-openapi-compute-tips-with-api-ref
|
||||
soft: true
|
||||
- name: codegenerator-openapi-dns-tips-with-api-ref
|
||||
soft: true
|
||||
- name: codegenerator-openapi-identity-tips-with-api-ref
|
||||
|
Loading…
x
Reference in New Issue
Block a user