Skip to content

Sparse fields #26

@jaakkor2

Description

@jaakkor2

Code generated by https://github.com/OpenAPITools/openapi-generator julia-client generates code like this

OpenAPI.Clients.set_param(_ctx.query, "fields", fields)  # type SparseFields

but I cannot set the fields in the interface to produce a query like this in https://jsonapi.org/format/#fetching-sparse-fieldsets (uudecoded)

GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1

do_request-function https://github.com/JuliaComputing/OpenAPI.jl/blob/v0.1.9/src/client.jl#L331-L343 does not seem to handle sparse fields? What should the fields argument above for the set_param be to produce correctly formed request?

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