Forum Discussion
stambaughsonwal
10 months agoNew Member
In Swagger 2.0, the items keyword is used for arrays, but the x-jvm-type extension is not a standard Swagger property. If you want to define the type of items in the array, you can use the items keyword directly with the $ref property.
Example:
yamlCopy code
name: users type: array items: $ref: '#/definitions/User'
This assumes that you have a "definitions" section where the "User" type is defined. Adjust the $ref accordingly based on your Swagger definition structure.
Related Content
- 2 years ago
- 5 years ago
- 11 years ago
- 2 years ago
- 2 years ago
Recent Discussions
- 4 days ago
- 26 days ago