I created a definition called Product, and another - Text(see code).
In parameters pathsI can not use the type Textcreated in the definitions. In the definition Product, I have a property called message, and I want this property to be a type too Text.
(...)
paths:
/products:
get:
summary: Product Types
description: |
Description text
parameters:
- name: latitude
in: query
description: Latitude component of location.
required: true
type: Text ### The type Text was not found here
(...)
definitions:
Product:
properties:
message:
type: Text ### Compilation Error in this line ####
name:
type: string
description: Data description.
Text:
properties:
code:
type: string
But this error occurs:
Swagger Error: Data does not match any schemas from "anyOf".
How can I refer from type Textto type Product?
source
share