From 2d0fd83c015ca8dcbe9009d5311b0e63f657244f Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 28 Jun 2024 14:01:50 +0300 Subject: [PATCH] update openapi --- openapi.yaml | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index b25e361..5e815bb 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -447,21 +447,13 @@ components: description: правила заполнения полей сущностей в амо properties: lead: - type: array - items: - $ref: '#/components/schemas/FieldRule' + $ref: '#/components/schemas/FieldRule' contact: - type: array - items: - $ref: '#/components/schemas/ContactRules' + $ref: '#/components/schemas/ContactRules' company: - type: array - items: - $ref: '#/components/schemas/FieldRule' + $ref: '#/components/schemas/FieldRule' customer: - type: array - items: - $ref: '#/components/schemas/FieldRule' + $ref: '#/components/schemas/FieldRule' TagsToAdd: type: object properties: @@ -842,25 +834,13 @@ components: type: object properties: Lead: - type: array - items: - $ref: "#/components/schemas/FieldRule" - description: "правила заполнения полей сущностей в амо" + $ref: '#/components/schemas/FieldRule' Contact: - type: array - items: - $ref: "#/components/schemas/ContactRules" - description: "правила заполнения полей контакта в амо, передавать не стоит, будут парситься из конфига опроса переданного в правиле" + $ref: '#/components/schemas/ContactRules' Company: - type: array - items: - $ref: "#/components/schemas/FieldRule" - description: "правила заполнения полей сущностей в амо" + $ref: '#/components/schemas/FieldRule' Customer: - type: array - items: - $ref: "#/components/schemas/FieldRule" - description: "правила заполнения полей сущностей в амо" + $ref: '#/components/schemas/FieldRule' TagsToAdd: type: object properties: @@ -902,6 +882,11 @@ components: type: string additionalProperties: type: integer + QuestionID: + type: integer + additionalProperties: + type: integer + description: сопоставление айдишника вопроса полю, которое будет заполняться ответом. соответственно QuestionID это айдишник вопроса. это я так мэпу пытался записать. Мапа, где ключи - QuestionID, значения - ID кастомного поля responses: '200':