From c91ad6152aaa8fbec6c615acda5afacf342a5c87 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Thu, 8 Aug 2024 14:00:03 -0300 Subject: [PATCH 1/5] chore: update api added field weight in request post origin --- edgeapplications.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index 97b5f5f..ad03d1c 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -3815,7 +3815,9 @@ components: example: addresses: - address: address + weight: weight - address: address + weight: weight hmac_secret_key: hmac_secret_key origin_path: origin_path origin_protocol_policy: origin_protocol_policy @@ -4675,9 +4677,12 @@ components: CreateOriginsRequest_addresses: example: address: address + weight: weight properties: address: type: string + weight: + type: integer required: - address type: object From 3842250d3996c91bb3aad8d77cd4e333d6934b5d Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Thu, 8 Aug 2024 14:18:08 -0300 Subject: [PATCH 2/5] chore: added example --- edgeapplications.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index ad03d1c..cff712e 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -3816,8 +3816,6 @@ components: addresses: - address: address weight: weight - - address: address - weight: weight hmac_secret_key: hmac_secret_key origin_path: origin_path origin_protocol_policy: origin_protocol_policy @@ -4681,8 +4679,10 @@ components: properties: address: type: string + example: "" weight: type: integer + example: 10 required: - address type: object From 86677dc4a4965a5ff53fdf1c66b31df38ae3dd72 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Thu, 8 Aug 2024 16:21:52 -0300 Subject: [PATCH 3/5] chore: all field weight to int --- edgeapplications.yaml | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index cff712e..97084e7 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -3815,7 +3815,7 @@ components: example: addresses: - address: address - weight: weight + weight: 10 hmac_secret_key: hmac_secret_key origin_path: origin_path origin_protocol_policy: origin_protocol_policy @@ -3956,11 +3956,11 @@ components: addresses: - address: address is_active: true - weight: weight + weight: 10 server_role: server_role - address: address is_active: true - weight: weight + weight: 10 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4037,11 +4037,11 @@ components: addresses: - address: address is_active: true - weight: weight + weight: 10 server_role: server_role - address: address is_active: true - weight: weight + weight: 10 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4063,11 +4063,11 @@ components: addresses: - address: address is_active: true - weight: weight + weight: 10 server_role: server_role - address: address is_active: true - weight: weight + weight: 10 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4115,11 +4115,11 @@ components: addresses: - address: address is_active: true - weight: weight + weight: 10 server_role: server_role - address: address is_active: true - weight: weight + weight: 10 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4675,14 +4675,23 @@ components: CreateOriginsRequest_addresses: example: address: address - weight: weight + is_active: true + weight: 10 + server_role: primary properties: address: type: string - example: "" + is_active: + type: boolean weight: + nullable: true type: integer - example: 10 + format: int64 + server_role: + type: string + maxLength: 10 + minLength: 1 + pattern: '^(primary|backup)$' required: - address type: object @@ -4690,14 +4699,15 @@ components: example: address: address is_active: true - weight: weight - server_role: server_role + weight: 10 + server_role: primary properties: address: type: string weight: nullable: true - type: string + type: integer + format: int64 server_role: type: string is_active: From 88f64cb869a4399d4a61db7c33a5d6ba748d66bb Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Mon, 12 Aug 2024 14:52:45 -0300 Subject: [PATCH 4/5] chore: removed the nulltable from the weight field making it difficult to use a field with a null value --- edgeapplications.yaml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index 97084e7..b6585c8 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -3815,7 +3815,7 @@ components: example: addresses: - address: address - weight: 10 + weight: 1 hmac_secret_key: hmac_secret_key origin_path: origin_path origin_protocol_policy: origin_protocol_policy @@ -3956,11 +3956,11 @@ components: addresses: - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4037,11 +4037,11 @@ components: addresses: - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4063,11 +4063,11 @@ components: addresses: - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4115,11 +4115,11 @@ components: addresses: - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role - address: address is_active: true - weight: 10 + weight: 1 server_role: server_role hmac_secret_key: hmac_secret_key method: method @@ -4676,7 +4676,7 @@ components: example: address: address is_active: true - weight: 10 + weight: 1 server_role: primary properties: address: @@ -4684,7 +4684,6 @@ components: is_active: type: boolean weight: - nullable: true type: integer format: int64 server_role: @@ -4699,7 +4698,7 @@ components: example: address: address is_active: true - weight: 10 + weight: 1 server_role: primary properties: address: From b7ee9a53606aed10a27c9bc11306f1a114ba1782 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Mon, 12 Aug 2024 15:02:59 -0300 Subject: [PATCH 5/5] refactor: lint --- edgeapplications.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edgeapplications.yaml b/edgeapplications.yaml index b6585c8..33b6929 100644 --- a/edgeapplications.yaml +++ b/edgeapplications.yaml @@ -4686,6 +4686,8 @@ components: weight: type: integer format: int64 + minimum: 1 + maximum: 100 server_role: type: string maxLength: 10 @@ -4704,9 +4706,10 @@ components: address: type: string weight: - nullable: true type: integer format: int64 + minimum: 1 + maximum: 100 server_role: type: string is_active: