Hi,

 

Change the definition of autoCfg_t to:

 

  autoCfg_t:

    type: object

    properties:

      done:

        type: boolean

      rate:

        $ref: '#/definitions/autoRate'

 

The extra `schema` key word doesn’t belong there.

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of BD 
<bruce.do...@gmail.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Thursday, 20 April 2017 at 13:30
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: Re: New Swagger editor reporting errors for nested definitions

 

swagger: '2.0'

info:

  version: 0.0.0 WIP

  title: Chronos Service

host: 'localhost:8080'

basePath: /chronos/v1

produces:

  - application/json

paths:

  /getAutoCfg:

    get:

      operationId: getAutoCfgUsingGET

      responses:

        '200':

          description: Success

          schema: 

            $ref: '#/definitions/autoCfg_t'

definitions:

  autoRate:

    type: object

    properties:

      autoRate_enum:

        type: string

        enum:

          - onege

          - tenge

  autoCfg_t:

    type: object

    properties:

      done:

        type: boolean

      rate:

        schema:

        $ref: '#/definitions/autoRate'

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to