openapi

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUsersFragment

func BuildUsersFragment() string

BuildUsersFragment returns the minimal deterministic OpenAPI YAML fragment for the /v1/users/{id} path required by acceptance test 1.

func FromEvents

func FromEvents(evs []model.Event) string

FromEvents scans evs for successful (status 200) GET requests under the "/v1/users/" prefix and template-normalizes their paths via infer.TemplatePath, purely to detect whether any matching traffic was observed. It is currently a placeholder: regardless of what it finds, it always returns the static BuildUsersFragment() OpenAPI fragment (when no matching events exist, that fragment is returned immediately; otherwise the normalized path set is computed deterministically but not yet merged into the output — that is left for future work).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL