Skip to content

Postgres always insert empty object {} for empty jsontext #100

@longquanzheng

Description

@longquanzheng

E.g. for commandRequest of nil in the below code:

Screenshot 2023-11-20 at 3 03 44 PM

It will insertert {} instead of NULL.
As a result
Screenshot 2023-11-20 at 3 03 55 PM

After upgrading to open API 7.1.0
( see https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.1.0 for Go and OpenAPITools/openapi-generator#16863 )

There is a breaking change that it alwasy validate the required fields:

https://github.com/xcherryio/apis/blob/9ff80b8ba2c1bf8390f123e35707c63f56ef4d63/goapi/xcapi/model_command_request.go#L174

For now, we have to set the default value to emptyCommand and encodedObject

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions