From 61863cda6197c03c176a79f2af8dad424fee7e18 Mon Sep 17 00:00:00 2001 From: Xiaoyu Date: Fri, 13 Sep 2024 22:40:42 +0800 Subject: [PATCH] bump version to-> < 0.29.3 > --- app/Main.hs | 2 +- swagger.json | 268 +++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 262 insertions(+), 8 deletions(-) diff --git a/app/Main.hs b/app/Main.hs index ee8e6212..e01d69a4 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -102,7 +102,7 @@ $(deriveJSON defaultOptions ''Version) instance ToSchema Version version1 :: Version -version1 = Version "0.29.2" +version1 = Version "0.29.3" diff --git a/swagger.json b/swagger.json index a878e95e..20a4b0c7 100644 --- a/swagger.json +++ b/swagger.json @@ -8938,6 +8938,131 @@ } ] }, + "FieldMatchRule": { + "oneOf": [ + { + "properties": { + "contents": { + "items": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "tag": { + "enum": [ + "FieldIn" + ], + "type": "string" + } + }, + "required": [ + "tag", + "contents" + ], + "title": "FieldIn", + "type": "object" + }, + { + "properties": { + "contents": { + "items": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/Cmp" + }, + { + "format": "double", + "type": "number" + } + ], + "maxItems": 3, + "minItems": 3, + "type": "array" + }, + "tag": { + "enum": [ + "FieldCmp" + ], + "type": "string" + } + }, + "required": [ + "tag", + "contents" + ], + "title": "FieldCmp", + "type": "object" + }, + { + "properties": { + "contents": { + "items": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/RangeType" + }, + { + "format": "double", + "type": "number" + }, + { + "format": "double", + "type": "number" + } + ], + "maxItems": 4, + "minItems": 4, + "type": "array" + }, + "tag": { + "enum": [ + "FieldInRange" + ], + "type": "string" + } + }, + "required": [ + "tag", + "contents" + ], + "title": "FieldInRange", + "type": "object" + }, + { + "properties": { + "contents": { + "$ref": "#/components/schemas/FieldMatchRule" + }, + "tag": { + "enum": [ + "FieldNot" + ], + "type": "string" + } + }, + "required": [ + "tag", + "contents" + ], + "title": "FieldNot", + "type": "object" + } + ] + }, "FixedAsset": { "oneOf": [ { @@ -10560,6 +10685,51 @@ "title": "ObligorByTag", "type": "object" }, + { + "properties": { + "contents": { + "items": [ + { + "items": { + "$ref": "#/components/schemas/FieldMatchRule" + }, + "type": "array" + }, + { + "items": [ + { + "$ref": "#/components/schemas/AssetPerfAssumption" + }, + { + "$ref": "#/components/schemas/AssetDelinqPerfAssumption" + }, + { + "$ref": "#/components/schemas/AssetDefaultedPerfAssumption" + } + ], + "maxItems": 3, + "minItems": 3, + "type": "array" + } + ], + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "tag": { + "enum": [ + "ObligorByField" + ], + "type": "string" + } + }, + "required": [ + "tag", + "contents" + ], + "title": "ObligorByField", + "type": "object" + }, { "properties": { "contents": { @@ -12798,6 +12968,16 @@ } ] }, + "RangeType": { + "enum": [ + "II", + "IE", + "EI", + "EE", + "NO_IE" + ], + "type": "string" + }, "RateAssumption": { "oneOf": [ { @@ -14803,13 +14983,87 @@ "type": "array" }, "TagMatchRule": { - "enum": [ - "TagEq", - "TagSubset", - "TagSuperset", - "TagAny" - ], - "type": "string" + "oneOf": [ + { + "properties": { + "tag": { + "enum": [ + "TagEq" + ], + "type": "string" + } + }, + "required": [ + "tag" + ], + "title": "TagEq", + "type": "object" + }, + { + "properties": { + "tag": { + "enum": [ + "TagSubset" + ], + "type": "string" + } + }, + "required": [ + "tag" + ], + "title": "TagSubset", + "type": "object" + }, + { + "properties": { + "tag": { + "enum": [ + "TagSuperset" + ], + "type": "string" + } + }, + "required": [ + "tag" + ], + "title": "TagSuperset", + "type": "object" + }, + { + "properties": { + "tag": { + "enum": [ + "TagAny" + ], + "type": "string" + } + }, + "required": [ + "tag" + ], + "title": "TagAny", + "type": "object" + }, + { + "properties": { + "contents": { + "$ref": "#/components/schemas/TagMatchRule" + }, + "tag": { + "enum": [ + "TagNot" + ], + "type": "string" + } + }, + "required": [ + "tag", + "contents" + ], + "title": "TagNot", + "type": "object" + } + ] }, "TestDeal_AssetUnion": { "properties": {