Product
という定義と別のという定義を作成しましたText
(コードを参照)。
定義で作成した型parameters
がpaths
使えません。Text
定義Product
では、私は呼び出されたプロパティを持っており、message
そのプロパティもタイプにしたいですText
。
(...)
paths:
/products:
get:
summary: Product Types
description: |
Description text
parameters:
- name: latitude
in: query
description: Latitude component of location.
required: true
### The type Text was not found here
type: Text ### The type Text was not found here
(...)
definitions:
Product:
properties:
message:
### The type Text was not found here
type: Text ### Compilation Error in this line ####
name:
type: string
description: Data description.
Text:
properties:
code:
type: string
しかし、このエラーが発生します:
Swagger エラー: データが「anyOf」のスキーマと一致しません。
Text
type のtypeを参照するにはどうすればよいProduct
ですか?