
Announcements
Hello,
I am creating a custom connector which includes arrays. The development works fine, but how do I set the name of the nested items? Setting the name for the field 'project id' with its description worked fine, but how do I set the name of product_id properly, similar to project_id?
I want to get rid of the grouped_lines Line item Product_id part and set my own title
Here is part of my Swagger YAML:
/invoices.draft:
post:
responses:
summary: Invoices Draft
description: Draft a new invoice.
operationId: invoices.draft
parameters:
- name: body
in: body
required: true
schema:
type: object
required:
properties:
project_id:
type: string
title: Project id
description: eg. 624ca743-8998-4f8c-add1-c427bb022166
grouped_lines:
type: array
items:
type: object
properties:
section:
type: object
properties:
title:
type: string
title: Section title
description: title
description: section
line_items:
title: Line item
type: array
items:
type: object
required:
- quantity
- description
- unit_price
- tax_rate_id
properties:
quantity:
type: integer
format: int32
title: Quantity of item
description: '10'
default: 1
product_id:
type: string
title: Product id
description: eg. d905ff57-e866-0f59-9d1e-1fd4538bfae1
The title is concatenation of the tiles of the nested elements.
So, add a proper title for the grouped_lines. I dont know if you can set it to empty or spaces. But, hopefully this gives you some idea.