Ron, spec below:

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'

On Thursday, 20 April 2017 11:11:56 UTC+1, Ron wrote:
>
> Can you provide the full spec please?
>
>  
>
>  
>
>  
>
> *From: *<[email protected] <javascript:>> on behalf of BD <
> [email protected] <javascript:>>
> *Reply-To: *"[email protected] <javascript:>" <
> [email protected] <javascript:>>
> *Date: *Thursday, 20 April 2017 at 13:04
> *To: *Swagger <[email protected] <javascript:>>
> *Subject: *New Swagger editor reporting errors for nested definitions
>
>  
>
> Definitions below now generating these errors today. No errors generated 
> for the same code yesterday?
>
>  
>
> *Schema error at definitions.autoCfg_t.properties.rate*
>
> *additionalProperty "schema" exists in when not allowed*
>
> *Semantic error at definitions.autoCfg_t.properties.rate.schema*
>
> *Sibling values are not allowed alongside a $ref.*
>
>  
>
> 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 [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to