Skip to content

Deep object's don't support nullable.Nullable or more complex types like uuid.UUID #44

Description

@j-waters

If you set nullable-type: true in your oapi-codegen config file and then use nullable: true in a field in a deep object, the deep object unmarshalling breaks. That's because nullable.Nullable is implemented as a map, and there is no special handling here.

Similarly, if you use format: uuid in a string field in a deep object, you'll get an error like this:

"Invalid format for parameter filter: error assigning value to destination: error assigning field [entity]: unhandled type: uuid.UUID"

Which I'm fairly sure comes from here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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