openapitest

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package openapitest checks a published OpenAPI document for what clients generated from it need: every operation identified, summarised, described and tagged, and every parameter and schema property described. It also finds where a property name appears, so tests can keep retired fields out.

Test support only: nothing in the server imports it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(doc *huma.OpenAPI) (map[string]any, error)

Decode renders doc as the JSON clients read, so checks see exactly what is published.

func Problems

func Problems(doc map[string]any) []string

Problems lists every gap in doc: an operation without operationId, summary, description or tags, a parameter without a description, and a schema property without one (huma's own $schema link excepted).

func PropertyPaths

func PropertyPaths(doc map[string]any, name string) []string

PropertyPaths returns where a property named name is declared, as JSON paths of the schemas holding it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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