From fc818fba4c0a30bf0b9861849419f0bdc130b5a7 Mon Sep 17 00:00:00 2001 From: Marko Juraga Date: Fri, 22 Dec 2023 14:00:49 +0100 Subject: [PATCH] BUILD/MINOR: spec: fix yamllint warnings --- specification/models/configuration/bind.yaml | 32 +++++++++---------- .../models/configuration/bind_params.yaml | 1 + .../models/configuration/errorfiles.yaml | 1 + .../models/configuration/server_params.yaml | 1 + specification/models/configuration/table.yaml | 1 + specification/models/runtime/acl_file.yaml | 1 + .../models/runtime/acl_file_entry.yaml | 1 + specification/models/runtime/map_entry.yaml | 1 + .../models/runtime/process_info.yaml | 1 + .../models/runtime/process_info_item.yaml | 1 + specification/models/runtime/server.yaml | 1 + .../models/runtime/ssl_cert_entry.yaml | 1 + specification/models/runtime/table.yaml | 1 + specification/models/runtime/table_entry.yaml | 1 + .../models/storage/general_file.yaml | 1 + specification/models/storage/map.yaml | 1 + .../models/storage/ssl_certificate.yaml | 1 + .../paths/configuration/http_errors.yaml | 2 +- specification/paths/configuration/table.yaml | 1 + specification/paths/runtime/acls.yaml | 1 + specification/paths/runtime/acls_entries.yaml | 1 + specification/paths/runtime/maps.yaml | 1 + specification/paths/runtime/maps_entries.yaml | 1 + specification/paths/runtime/process_info.yaml | 1 + specification/paths/runtime/servers.yaml | 1 + .../paths/runtime/stick_table_entries.yaml | 1 + specification/paths/runtime/stick_tables.yaml | 1 + .../paths/storage/general_files.yaml | 1 + specification/paths/storage/maps.yaml | 1 + .../paths/storage/ssl_certificates.yaml | 1 + 30 files changed, 45 insertions(+), 17 deletions(-) diff --git a/specification/models/configuration/bind.yaml b/specification/models/configuration/bind.yaml index 667c21c4..9c65fc3c 100644 --- a/specification/models/configuration/bind.yaml +++ b/specification/models/configuration/bind.yaml @@ -6,22 +6,22 @@ bind: - $ref: '#/definitions/bind_params' - type: object properties: - address: - type: string - pattern: '^[^\s]+$' - example: 127.0.0.1 - port: - maximum: 65535 - minimum: 1 - type: integer - x-nullable: true - example: 80 - port-range-end: - maximum: 65535 - minimum: 1 - type: integer - x-nullable: true - example: 81 + address: + type: string + pattern: '^[^\s]+$' + example: 127.0.0.1 + port: + maximum: 65535 + minimum: 1 + type: integer + x-nullable: true + example: 80 + port-range-end: + maximum: 65535 + minimum: 1 + type: integer + x-nullable: true + example: 81 additionalProperties: false default_bind: title: Default Bind diff --git a/specification/models/configuration/bind_params.yaml b/specification/models/configuration/bind_params.yaml index c1c26055..a404f58f 100644 --- a/specification/models/configuration/bind_params.yaml +++ b/specification/models/configuration/bind_params.yaml @@ -1,3 +1,4 @@ +--- bind_params: type: object properties: diff --git a/specification/models/configuration/errorfiles.yaml b/specification/models/configuration/errorfiles.yaml index 7e6b6a22..8163aa67 100644 --- a/specification/models/configuration/errorfiles.yaml +++ b/specification/models/configuration/errorfiles.yaml @@ -1,3 +1,4 @@ +--- errorfiles: type: object properties: diff --git a/specification/models/configuration/server_params.yaml b/specification/models/configuration/server_params.yaml index 205d82a1..04d9fd37 100644 --- a/specification/models/configuration/server_params.yaml +++ b/specification/models/configuration/server_params.yaml @@ -1,3 +1,4 @@ +--- server_params: type: object properties: diff --git a/specification/models/configuration/table.yaml b/specification/models/configuration/table.yaml index 88022542..c78679aa 100644 --- a/specification/models/configuration/table.yaml +++ b/specification/models/configuration/table.yaml @@ -1,3 +1,4 @@ +--- table: type: object properties: diff --git a/specification/models/runtime/acl_file.yaml b/specification/models/runtime/acl_file.yaml index 757c0124..dafe7499 100644 --- a/specification/models/runtime/acl_file.yaml +++ b/specification/models/runtime/acl_file.yaml @@ -1,3 +1,4 @@ +--- acl_file: title: ACL File description: ACL File diff --git a/specification/models/runtime/acl_file_entry.yaml b/specification/models/runtime/acl_file_entry.yaml index 2622d117..8a30cf8c 100644 --- a/specification/models/runtime/acl_file_entry.yaml +++ b/specification/models/runtime/acl_file_entry.yaml @@ -1,3 +1,4 @@ +--- acl_file_entry: title: One ACL File Entry description: One ACL File Entry diff --git a/specification/models/runtime/map_entry.yaml b/specification/models/runtime/map_entry.yaml index 82b579cb..24410b45 100644 --- a/specification/models/runtime/map_entry.yaml +++ b/specification/models/runtime/map_entry.yaml @@ -1,3 +1,4 @@ +--- map_entry: title: One Map Entry description: One Map Entry diff --git a/specification/models/runtime/process_info.yaml b/specification/models/runtime/process_info.yaml index 1e722420..ee21a32b 100644 --- a/specification/models/runtime/process_info.yaml +++ b/specification/models/runtime/process_info.yaml @@ -1,3 +1,4 @@ +--- process_infos: title: HAProxy Information description: General HAProxy process information diff --git a/specification/models/runtime/process_info_item.yaml b/specification/models/runtime/process_info_item.yaml index 77ea0b97..0166ff15 100644 --- a/specification/models/runtime/process_info_item.yaml +++ b/specification/models/runtime/process_info_item.yaml @@ -1,3 +1,4 @@ +--- process_info_item: type: object properties: diff --git a/specification/models/runtime/server.yaml b/specification/models/runtime/server.yaml index 1e1fbf71..e251bb82 100644 --- a/specification/models/runtime/server.yaml +++ b/specification/models/runtime/server.yaml @@ -1,3 +1,4 @@ +--- server: title: Runtime Server description: Runtime transient server properties diff --git a/specification/models/runtime/ssl_cert_entry.yaml b/specification/models/runtime/ssl_cert_entry.yaml index 4c23c626..5a7657b9 100644 --- a/specification/models/runtime/ssl_cert_entry.yaml +++ b/specification/models/runtime/ssl_cert_entry.yaml @@ -1,3 +1,4 @@ +--- ssl_cert_entry: title: One SSL Certificate Entry description: One SSL/TLS certificate diff --git a/specification/models/runtime/table.yaml b/specification/models/runtime/table.yaml index 3a32376b..9cc90ffe 100644 --- a/specification/models/runtime/table.yaml +++ b/specification/models/runtime/table.yaml @@ -1,3 +1,4 @@ +--- table: title: Stick Table description: Stick Table Information diff --git a/specification/models/runtime/table_entry.yaml b/specification/models/runtime/table_entry.yaml index 9e03172a..dd77e68d 100644 --- a/specification/models/runtime/table_entry.yaml +++ b/specification/models/runtime/table_entry.yaml @@ -1,3 +1,4 @@ +--- table_entry: title: Stick Table Entry description: One entry in stick table diff --git a/specification/models/storage/general_file.yaml b/specification/models/storage/general_file.yaml index b11c2ab3..19860c3a 100644 --- a/specification/models/storage/general_file.yaml +++ b/specification/models/storage/general_file.yaml @@ -1,3 +1,4 @@ +--- general_file: title: General use file description: General use file diff --git a/specification/models/storage/map.yaml b/specification/models/storage/map.yaml index 59fa70de..925cfd1f 100644 --- a/specification/models/storage/map.yaml +++ b/specification/models/storage/map.yaml @@ -1,3 +1,4 @@ +--- map: title: Map File description: Map File diff --git a/specification/models/storage/ssl_certificate.yaml b/specification/models/storage/ssl_certificate.yaml index 2763063d..864e20a1 100644 --- a/specification/models/storage/ssl_certificate.yaml +++ b/specification/models/storage/ssl_certificate.yaml @@ -1,3 +1,4 @@ +--- ssl_certificate: title: SSL File description: A file containing one or more SSL/TLS certificates and keys diff --git a/specification/paths/configuration/http_errors.yaml b/specification/paths/configuration/http_errors.yaml index 36e5a03c..66b95c24 100644 --- a/specification/paths/configuration/http_errors.yaml +++ b/specification/paths/configuration/http_errors.yaml @@ -158,4 +158,4 @@ http_errors_section_one: '404': $ref: '#/responses/NotFound' 'default': - $ref: '#/responses/DefaultError' \ No newline at end of file + $ref: '#/responses/DefaultError' diff --git a/specification/paths/configuration/table.yaml b/specification/paths/configuration/table.yaml index cc47b957..aa37fbd5 100644 --- a/specification/paths/configuration/table.yaml +++ b/specification/paths/configuration/table.yaml @@ -1,3 +1,4 @@ +--- tables: get: summary: Return an array of tables diff --git a/specification/paths/runtime/acls.yaml b/specification/paths/runtime/acls.yaml index 1eb0f537..d4f9de5c 100644 --- a/specification/paths/runtime/acls.yaml +++ b/specification/paths/runtime/acls.yaml @@ -1,3 +1,4 @@ +--- acls: get: tags: diff --git a/specification/paths/runtime/acls_entries.yaml b/specification/paths/runtime/acls_entries.yaml index f70db465..faaf4c79 100644 --- a/specification/paths/runtime/acls_entries.yaml +++ b/specification/paths/runtime/acls_entries.yaml @@ -1,3 +1,4 @@ +--- acls_entries_one: get: tags: diff --git a/specification/paths/runtime/maps.yaml b/specification/paths/runtime/maps.yaml index cf2c338d..bd646264 100644 --- a/specification/paths/runtime/maps.yaml +++ b/specification/paths/runtime/maps.yaml @@ -1,3 +1,4 @@ +--- maps: get: # show map summary: Return runtime map files diff --git a/specification/paths/runtime/maps_entries.yaml b/specification/paths/runtime/maps_entries.yaml index 4ae9cc03..04aad37e 100644 --- a/specification/paths/runtime/maps_entries.yaml +++ b/specification/paths/runtime/maps_entries.yaml @@ -1,3 +1,4 @@ +--- maps_entries: get: # show map [map] summary: Return one map runtime entries diff --git a/specification/paths/runtime/process_info.yaml b/specification/paths/runtime/process_info.yaml index 41bc8329..20df3146 100644 --- a/specification/paths/runtime/process_info.yaml +++ b/specification/paths/runtime/process_info.yaml @@ -1,3 +1,4 @@ +--- process_info: get: tags: diff --git a/specification/paths/runtime/servers.yaml b/specification/paths/runtime/servers.yaml index 9149ec53..b92e1074 100644 --- a/specification/paths/runtime/servers.yaml +++ b/specification/paths/runtime/servers.yaml @@ -1,3 +1,4 @@ +--- servers: get: summary: Return an array of runtime servers' settings diff --git a/specification/paths/runtime/stick_table_entries.yaml b/specification/paths/runtime/stick_table_entries.yaml index f095a7b3..6ad61e9d 100644 --- a/specification/paths/runtime/stick_table_entries.yaml +++ b/specification/paths/runtime/stick_table_entries.yaml @@ -1,3 +1,4 @@ +--- stick_table_entries: post: summary: Set Entry to Stick Table diff --git a/specification/paths/runtime/stick_tables.yaml b/specification/paths/runtime/stick_tables.yaml index feacb41e..58fae0b9 100644 --- a/specification/paths/runtime/stick_tables.yaml +++ b/specification/paths/runtime/stick_tables.yaml @@ -1,3 +1,4 @@ +--- stick_tables: get: summary: Return Stick Tables diff --git a/specification/paths/storage/general_files.yaml b/specification/paths/storage/general_files.yaml index d8f241c7..1b1f0367 100644 --- a/specification/paths/storage/general_files.yaml +++ b/specification/paths/storage/general_files.yaml @@ -1,3 +1,4 @@ +--- general_files: get: summary: Return a list of all managed general use files diff --git a/specification/paths/storage/maps.yaml b/specification/paths/storage/maps.yaml index 1707c1c8..9d9b8cea 100644 --- a/specification/paths/storage/maps.yaml +++ b/specification/paths/storage/maps.yaml @@ -1,3 +1,4 @@ +--- maps: get: summary: Return a list of all managed map files diff --git a/specification/paths/storage/ssl_certificates.yaml b/specification/paths/storage/ssl_certificates.yaml index 12708d4b..0d97a03c 100644 --- a/specification/paths/storage/ssl_certificates.yaml +++ b/specification/paths/storage/ssl_certificates.yaml @@ -1,3 +1,4 @@ +--- ssl_certificates: get: summary: Return all available SSL certificates on disk