Skip to content

Api-platform's swagger not compatible with client generator #2146

@danaki

Description

@danaki

Trying to generate a client code using Api-platform (that's API bundle for Symfony php framework) and it's Swagger interface. Here's the demo UI: https://demo.api-platform.com/ and OpenAPI specification is here https://demo.api-platform.com/docs.json

Getting errors in generated code, related to colon symbol in specification, e.g.:

System.Threading.Tasks.Task<System.Collections.Generic.ICollection<BookBook:read>> GetBookCollectionAsync(System.Collections.Generic.IEnumerable<string> properties, string orderid, string ordertitle, string orderauthor, string orderisbn, string orderpublicationDate, string title, string author, int? page);

Error CS1003 Syntax error, ',' expected

Shouldn't ":" be replaced with an underscore?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions