From c91ad6152aaa8fbec6c615acda5afacf342a5c87 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Thu, 8 Aug 2024 14:00:03 -0300 Subject: [PATCH 1/3] 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/3] 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/3] 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: