Skip to content

Optional parameters must appear after all required parameters #4

Open
@icecoldfire

Description

@icecoldfire

These gives an error:

    [GetRequest(RoutePrefix.ModelVersionRevision + "/globals/tables")]
    public class GetLookupTablesRequest : IReturn<GetLookupTablesResponse>
    {
        public string[] GlobalIds { get; set; }
        public string ProjectKey { get; set; }
        public string ModelKey { get; set; }
        public int Version { get; set; }
        public int? Revision { get; set; }
    }

    public class GetLookupTablesResponse
    {
        public Dictionary<string, JArray> Result { get; set; }
    }
}

But this works:

    [GetRequest(RoutePrefix.ModelVersionRevision + "/globals/tables")]
    public class GetLookupTablesRequest : IReturn<GetLookupTablesResponse>
    {
        public string ProjectKey { get; set; }
        public string ModelKey { get; set; }
        public int Version { get; set; }
        public int? Revision { get; set; }
        public string[] GlobalIds { get; set; }
    }

    public class GetLookupTablesResponse
    {
        public Dictionary<string, JArray> Result { get; set; }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions