Need more info. Not even sure which tool you’re using.

 

 

 

From: <[email protected]> on behalf of Fasa Afsfas 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Friday, 17 February 2017 at 1:04
To: Swagger <[email protected]>
Subject: Swagger editor response example

 

Hi there, I was wondering, if someone can help me with this problem: 

 

 

  User:

    example:

      - id:123

        familyId:555

      - id:124

        familyId:666

    type: object

    required:

      - id

      - familyId

      - agencyId

      - name

    properties:

      id:

        type: string

        #example: 654684384

      familyId:

        type: string

        #example: 86434384

      agencyId:

        type: string

        #example: 684684684

      name:

        type: string

        #example: Krestni Prijmeni

      phone:

        type: string

        #example: +420689758        

      email:

        type: string

        #example: [email protected]


If I use examples in specific sections ( green ), it works fine and swagger 
generates server side javascript with examples.

 

I would like to somehow define the whole object on top ( something like the red 
section in my code ). Is there some way to do so ? Thanks a lot.

-- 
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.


-- 
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