Skip to content

Serdes Does Not Work for Items in Request Parameters in Array #873

Open
@j-bellavista-flexidao

Description

@j-bellavista-flexidao

Describe the bug
Serialization and deserialization seem to not be doing anything for request parameters that are inside an array. While individual string parameters with a custom formats work correctly, arrays containing strings with a custom format do not.

Actual behavior
For the array parameter, the strings within it are not being serialized or deserialized according to the custom format format specified in the schema.

Expected behavior
The expected behavior is that both individual string parameters and arrays of strings with a custom format should be serialized and deserialized correctly, following the custom format rules defined in the schema.

Examples and context
This example works:

parameters:
  - name: time
    in: query
    required: true
    schema:
        type: string
        format: custom-date

This one doesn't:

parameters:
  - name: times
    in: query
    required: true
    explode: false
    schema:
        type: array
        items:
            type: string
            format: custom-date

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