Giter VIP home page Giter VIP logo

agoda-com / autorest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/autorest

8.0 8.0 9.0 61.18 MB

Swagger (OpenAPI) Specification code generator featuring C# and Razor templates. Supports C#, Java, Node.js, TypeScript, Python and Ruby.

License: MIT License

Ruby 0.01% C# 73.34% JavaScript 23.35% PowerShell 0.30% Shell 0.01% CSS 0.01% HTML 1.32% Go 0.76% TypeScript 0.92% Smalltalk 0.01% Dockerfile 0.01%

autorest's People

Contributors

abhivijay96 avatar amarzavery avatar annatisch avatar bretjohnson avatar brjohnstmsft avatar devigned avatar dicko2 avatar dsgouda avatar fearthecowboy avatar jenol avatar jhancock93 avatar jianghaolu avatar joeldickson avatar john-hart avatar kevin-bronsdijk avatar kkchamp avatar lmazuel avatar markcowl avatar matthchr avatar nicklebedev37 avatar niklasgustafsson avatar ogail avatar olydis avatar ratchapol-an avatar stankovski avatar tbombach avatar veronicagg avatar vishrutshah avatar xingwu1 avatar yugangw-msft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autorest's Issues

Empty Responses aren't handled well

Not working

  /v1/conversations/{id}/guest/read:
    post:
      tags:
        - conversations
      description: |
        Reset the unread count of the guest to 0
      operationId: GetConversationGuestRead
      parameters:
        - name: id
          in: path
          description: Conversation id
          type: integer
          format: int64
          required: true
      responses:
        '200':
          description: The request has succeeded

Work around is to add a string as the response (last 2 lines).

  /v1/conversations/{id}/guest/read:
    post:
      tags:
        - conversations
      description: |
        Reset the unread count of the guest to 0
      operationId: GetConversationGuestRead
      parameters:
        - name: id
          in: path
          description: Conversation id
          type: integer
          format: int64
          required: true
      responses:
        '200':
          description: The request has succeeded
          schema:
            type: string

Should support empty response

collection types must be have a name ending with List or IList<T> will be used

This is a pretty sinister error. You must name your collections List or the type IList will be used instead of List. This is causing a compilation error:

[16:25:58]	[build] Models\PublishContext.cs(183,80): error CS1503: Argument 3: cannot convert from 'out System.Collections.Generic.List<string>' to 'out System.Collections.Generic.IList<string>'
[16:25:58]	[build] Models\CalSyncItemsResponse.cs(61,56): error CS1503: Argument 3: cannot convert from 'out System.Collections.Generic.List<Agoda.HostManage.TasksApi.Client.Models.CalSyncItem>' to 'out System.Collections.Generic.IList<Agoda.HostManage.TasksApi.Client.Models.CalSyncItem>'
[16:25:58]	[build] Models\PublishContext.cs(183,80): error CS1503: Argument 3: cannot convert from 'out System.Collections.Generic.List<string>' to 'out System.Collections.Generic.IList<string>'```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.