Erstellen von komplexen Typen (Definitionen) im Fors

Erstellte ich eine definition genannt Product genannt Text (siehe code).

Auf parameters von paths ich kann nicht mit dem Typ Text erstellt in Definitionen. Auf die definition Product ich haben eine Eigenschaft namens message und ich will, dass die Eigenschaft auf den Typ Text zu.

(...)

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

Aber dieser Fehler tritt auf:

Swagger Fehler:
Daten nicht übereinstimmen schemas von 'anyOf'.

Wie kann ich mich auf die Art Text auf die Art Product?

InformationsquelleAutor Computered | 2015-09-10
Schreibe einen Kommentar