update openapi

This commit is contained in:
Pavel 2024-06-28 14:01:50 +03:00
parent 93e3dad1e8
commit 2d0fd83c01

@ -447,20 +447,12 @@ components:
description: правила заполнения полей сущностей в амо
properties:
lead:
type: array
items:
$ref: '#/components/schemas/FieldRule'
contact:
type: array
items:
$ref: '#/components/schemas/ContactRules'
company:
type: array
items:
$ref: '#/components/schemas/FieldRule'
customer:
type: array
items:
$ref: '#/components/schemas/FieldRule'
TagsToAdd:
type: object
@ -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':