Skip to content

Support object schemas in query items #35

@czechboy0

Description

@czechboy0

We should support encoding non-primitive values as query items, which is prescribed by OpenAPI.

        - name: fields
          in: query
          description: Pairs of field=value to filter results
          required: true
          schema:
            type: object
            additionalProperties:
              type: string

The above example also uses additionalProperties, but I think that shouldn't change the story around serializing object structs into query items.

Somewhat related to #18.

This issue was also encountered in #83.

Metadata

Metadata

Assignees

Labels

area/generatorAffects: plugin, CLI, config file.area/openapiAdding/updating a feature defined in OpenAPI.kind/enhancementImprovements to existing feature.size/MMedium task. (A couple of days of work.)🆕 semver/minorAdds new public API.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions