Skip to content

Missing definition #186

@AdrianoAE

Description

@AdrianoAE

I'm using the version 0.7.2 and my response type is the following case:

public class Response
{
    public string Test { get; set; }
    public Test[] MyProperty { get; set; }
}

public class Test
{
    public int MyProperty { get; set; }
}

The schema for the Test class won't be generated becase of the property with the same name, if we change it to any other name it works as intended

Another problem is with generics

public class BaseResponse<T>
{
    public T Data { get; set; }
}

//using
[OpenApiResponseWithBody(..., bodyType: typeof(BaseResponse<List<Response>>))]

This generates a schema called "baseResponse_list`1" which is problematic with Azure APIM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions