Forum Discussion
- stambaughsonwalNew 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 codename: 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
- 6 years ago
- 12 years ago
- 5 years ago
- 2 years ago
Recent Discussions
- 12 days ago