Forum Discussion
stambaughsonwal
2 years 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
- 3 years ago
- 12 years ago
- 6 years ago
- 5 years ago
- 2 years ago
Recent Discussions
- 7 days ago
- 7 days ago
- 24 days ago