1
배열을 매개 변수로 지정하는 방법은 무엇입니까? 예를 들어 to/persons에 문자열 username, firstname, lastname, 및 배열 myArray을 줄 수 있습니다. 이것은Swagger를 사용하여 매개 변수로 배열 지정
paths:
/persons:
post:
parameters:
- name: person_what_is_the_purpose_of_this
in: body
description: The person to create.
schema:
required:
- username
properties:
firstName:
type: string
lastName:
type: string
username:
type: string
myArray:
type: array
items:
properties:
myArrayElement:
type: string
responses:
200:
description: A list of Person
schema:
type: array
items:
required:
- username
properties:
firstName:
type: string
lastName:
type: string
username:
type: string
는리스트 아니라 배열을 보낸다 – Jeremie