Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Option properties are not described correctly, and all properties are being described as optional #7

@ghost

Description

A case class property of type Option[T] should be represented in the Swagger model as a property of type T; the optional nature of the property would be indicated by required: false.

Instead, Option is being treated like any other Iterable type, so the model appears to have an array property with items of type T— and required is always being set to false. Properties that are not Options should be assumed to be required (or at least it should be possible to tell Swagger to behave that way, if you're never going to use nulls).

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