Skip to content

MVCSwagResponses isArray bug #376

@st1gok

Description

@st1gok

Hi!
I`m used RC5.
If set first method MVCSwagResponses isArray=true then all methods next following him also return array, even if they set isArray=false.

And otherwise if first method MVCSwagResponses isArray=false then all next methods also return not array.

Example:

[MVCPath('/profiles')]
[MVCSwagSummary('Profile', 'List all profiles', 'getProfiles')]
[MVCSwagResponses(200, 'Success', TProfile, True)]
[MVCSwagResponses(500, 'Internal Server Error')]
[MVCHTTPMethod([httpGET])]
procedure GetProfiles;

[MVCPath('/profiles/($uid)/activation')]
[MVCHTTPMethod([httpPOST])]
[MVCSwagParam(plPath, 'uid', 'profile id', ptInteger)]
[MVCSwagResponses(200, 'Success', TProfile)]
[MVCSwagResponses(500, 'Internal Server Error')]
[MVCSwagSummary('Profile', 'activate profile from device', 'activateProfiles')]
procedure Activation(uid: String);

[MVCPath('/profiles')]
[MVCSwagParam(plBody, 'entity', 'Profile object', TProfile)]
[MVCSwagSummary('Profile', 'Create or update profile', 'createProfile')]
[MVCSwagResponses(201, 'Success', TProfile)]
[MVCSwagResponses(500, 'Internal Server Error')]
[MVCHTTPMethod([httpPOST])]
procedure CreateProfile();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions