schemastore

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store holds a parsed SchemaStore catalog and resolves file paths to local schema files.

func Open

func Open(bundlePath string) (*Store, error)

Open reads the SchemaStore catalog from bundlePath and returns a Store. The bundlePath should be the root of a SchemaStore clone or download containing src/api/json/catalog.json and src/schemas/json/*.json.

func (*Store) Lookup

func (s *Store) Lookup(filePath string) (string, bool)

Lookup matches a file path against the catalog and returns the absolute path to the local schema file. Only schemas hosted on schemastore.org are resolved.

Jump to

Keyboard shortcuts

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