Documentation
¶
Overview ¶
Package specs provides embedded OpenAPI test specifications for use in tests and benchmarks. Specs are sourced from the original Telescope TypeScript test-files collection and cover multiple OpenAPI versions, formats, sizes, and error conditions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct {
Name string
Content []byte
Format openapi.FileFormat
Version openapi.Version
Lines int
Size SpecSize
Tags []string
}
Spec is a single embedded OpenAPI test specification with metadata.
func BenchmarkSpecs ¶
func BenchmarkSpecs() []Spec
BenchmarkSpecs returns a curated set of specs for benchmarking: one per size tier (Small, Medium, Large, XLarge). These are self-contained specs that parse and index without external $ref resolution.
func ByName ¶
ByName returns the spec with the given base name (without extension). Returns an empty Spec if not found.
func (Spec) LanguageID ¶
LanguageID returns the LSP language ID for this spec's format.