Skip to content

[Spike] Investigate open api configuration issue with x-go-types-import on index/server #1595

@thepetk

Description

@thepetk

Which area is this issue related to?

/area registry

Issue Description

During the upgrade of registry-support to go 1.21 we've experienced an issue with the oapi-codegen framework. More detailed after the addition of the sigs.k8s.io/structured-merge-diff/v4/schema the imports on types.gen.go were updated and the generator/schema package was removed (info here.

As a workaround we hardcoded the generator schema package on the index/server/config/types.yaml template, but ideally we would like to keep the same open API configuration and avoiding having hardcoded things on templates.

This issue's scope is to explore solutions for this issue, even by trying different generation frameworks.

Acceptance Criteria

  • Investigation report has been shared here and required issues (if any) have been created

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/registryDevfile registry for stacks and infrastructurelifecycle/rottenRotten items. These items have been stale for 60 days and are now closed.lifecycle/staleStale items. These items have not been updated for 90 days.

    Type

    No type

    Projects

    Status

    Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions