Versions in this module Expand all Collapse all v0 v0.0.65 Apr 27, 2026 Changes in this version + const PreviewStabilityLevel + const PrivatePreviewStabilityLevel + const PublicPreviewStabilityLevel + const StableStabilityLevel + const UpcomingStabilityLevel + func DateFromVersion(version string) (time.Time, error) + func FindMatchesFromContentType(contentType string) []string + func GetPreviewVersionName(contentTypeValue *openapi3.MediaType) (name string, err error) + func IsPreviewStabilityLevel(value string) bool + func IsPrivatePreviewStabilityLevel(value string) bool + func IsPublicPreviewStabilityLevel(value string) bool + func IsStableStabilityLevel(value string) bool + func IsUpcomingStabilityLevel(value string) bool + func Parse(contentType string) (string, error) + func ReplaceContentType(contentType, replacement string) string + func Sort(versions []*APIVersion) + func ValidateStabilityLevel(value string) error + type APIVersion struct + func FindLatestContentVersionMatched(op *openapi3.Operation, requestedVersion *APIVersion) *APIVersion + func New(opts ...Option) (*APIVersion, error) + func (v *APIVersion) Date() time.Time + func (v *APIVersion) Equal(v2 *APIVersion) bool + func (v *APIVersion) ExactMatchOnly() bool + func (v *APIVersion) GreaterThan(v2 *APIVersion) bool + func (v *APIVersion) IsPreview() bool + func (v *APIVersion) IsPrivatePreview() bool + func (v *APIVersion) IsPublicPreview() bool + func (v *APIVersion) IsStable() bool + func (v *APIVersion) IsUpcoming() bool + func (v *APIVersion) IsZero() bool + func (v *APIVersion) LessThan(v2 *APIVersion) bool + func (v *APIVersion) StabilityLevel() string + func (v *APIVersion) String() string + type Option func(v *APIVersion) error + func WithDate(date time.Time) Option + func WithFullContent(contentType string, contentValue *openapi3.MediaType) Option + func WithVersion(version string) Option