这是indexloc提供的服务,不要输入任何密码
Skip to content

SSE definition introduces unstable order in openapi.yaml #797

@jzillmann

Description

@jzillmann

I have this SSE setup:

sse.Register(api, huma.Operation{
		OperationID:   "StatusEvents",
		Method:        http.MethodGet,
		Path:          path,
		Summary:       "Get status updates",
		DefaultStatus: 200,
	}, map[string]any{
		// Mapping of event type name to Go struct for that event.
		"status":       util.StatusMessage{},
		"progress":     util.ProgressUpdate{},
		"progressData": util.ProgressData{},
		"errorMsg":     util.ErrorMessage{},
	}, func(ctx context.Context, input *schemas.UUIDInput, send sse.Sender) {

the openapi.yaml which I generate and put under version control is now having meaningless ordering changes every now and then:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions