http_schema_server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestServer

type TestServer struct {
	Port    int
	BaseURL string
	// contains filtered or unexported fields
}

TestServer wraps an HTTP server for testing schema resolution

func StartTestServer

func StartTestServer() (*TestServer, error)

StartTestServer starts a test HTTP server serving JSON schemas

func (*TestServer) SchemaURL

func (ts *TestServer) SchemaURL(path string) string

SchemaURL returns the full URL for a schema file

func (*TestServer) Stop

func (ts *TestServer) Stop() error

Stop gracefully shuts down the test server

Jump to

Keyboard shortcuts

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