Skip to content

Support *string type for openapi #532

Open
@dongjiang1989

Description

@dongjiang1989

Kubernete CRD Defined:

type Test struct {
	// +kubebuilder:validation:Minlength=1
	// +optional
	Name *string `json:"name,omitempty"`
	// +required
	ID   int      `json:"id"`
}

call BuildOpenAPISpecFromRoutes error

non-body Restful parameter type should be a simple type, but got : *string

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions