From 2b2bd825d7007a9cc51deda645f2a0a18962ab07 Mon Sep 17 00:00:00 2001 From: Vitor-Azion Date: Tue, 19 Dec 2023 14:33:39 -0300 Subject: [PATCH 1/4] Ajust-OpenAPI-EdgeApp---type-weight-to-int --- edgeapplications.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index 94bcb264..4c164411 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -4667,9 +4667,20 @@ components: CreateOriginsRequest_addresses: example: address: address + is_active: true + weight: weight + server_role: server_role properties: address: type: string + is_active: + type: boolean + weight: + nullable: true + type: integer + format: int64 + server_role: + type: string required: - address type: object @@ -4684,7 +4695,7 @@ components: type: string weight: nullable: true - type: string + type: integer server_role: type: string is_active: From a107afd280c99d49b45e73a3386eb5d84e1ff8ac Mon Sep 17 00:00:00 2001 From: Vitor-Azion Date: Fri, 5 Jan 2024 10:02:30 -0300 Subject: [PATCH 2/4] ajust for OpenAPI lint --- edgeapplications.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index 4c164411..5d8bbde9 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -4666,10 +4666,10 @@ components: type: object CreateOriginsRequest_addresses: example: - address: address + address: azion.com.br is_active: true - weight: weight - server_role: server_role + weight: 10 + server_role: primary properties: address: type: string @@ -4681,15 +4681,18 @@ components: format: int64 server_role: type: string + maxLength: 10 + minLength: 1 + pattern: '^(primary|backup)$' required: - address type: object OriginsResultResponse_addresses: example: - address: address + address: azion.com.br is_active: true - weight: weight - server_role: server_role + weight: 10 + server_role: primary properties: address: type: string @@ -4698,6 +4701,9 @@ components: type: integer server_role: type: string + maxLength: 10 + minLength: 1 + pattern: '^(primary|backup)$' is_active: type: boolean required: From c5acfa3a5cad09099a6316318f3d29f2f1b9a840 Mon Sep 17 00:00:00 2001 From: Vitor-Azion Date: Fri, 5 Jan 2024 10:12:20 -0300 Subject: [PATCH 3/4] new update --- edgeapplications.yaml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index 5d8bbde9..88263b66 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -3954,8 +3954,8 @@ components: addresses: - address: address is_active: true - weight: weight - server_role: server_role + weight: 10 + server_role: primary - address: address is_active: true weight: weight @@ -4050,12 +4050,8 @@ components: addresses: - address: address is_active: true - weight: weight - server_role: server_role - - address: address - is_active: true - weight: weight - server_role: server_role + weight: 10 + server_role: primary hmac_secret_key: hmac_secret_key method: method origin_path: origin_path @@ -4128,12 +4124,8 @@ components: addresses: - address: address is_active: true - weight: weight - server_role: server_role - - address: address - is_active: true - weight: weight - server_role: server_role + weight: 10 + server_role: primary hmac_secret_key: hmac_secret_key method: method origin_path: origin_path From 924ee886eca027c4a20e9e7db9cec2e3b45d39fe Mon Sep 17 00:00:00 2001 From: Vitor-Azion Date: Fri, 5 Jan 2024 10:17:22 -0300 Subject: [PATCH 4/4] update --- edgeapplications.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index 88263b66..381c4d1a 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -3956,10 +3956,6 @@ components: is_active: true weight: 10 server_role: primary - - address: address - is_active: true - weight: weight - server_role: server_role hmac_secret_key: hmac_secret_key method: method origin_path: origin_path @@ -4072,12 +4068,8 @@ components: addresses: - address: address is_active: true - weight: weight - server_role: server_role - - address: address - is_active: true - weight: weight - server_role: server_role + weight: 10 + server_role: primary hmac_secret_key: hmac_secret_key method: method origin_path: origin_path