schema

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigSchemaURL = schemaPrefix + "posit-publishing-schema-v3.json"
View Source
const DeploymentSchemaURL = schemaPrefix + "posit-publishing-record-schema-v3.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator[T any] struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator[T any](schemaURL string) (*Validator[T], error)

func (*Validator[T]) ValidateContent

func (v *Validator[T]) ValidateContent(data any) error

func (*Validator[T]) ValidateTOMLFile

func (v *Validator[T]) ValidateTOMLFile(path util.AbsolutePath) error

Jump to

Keyboard shortcuts

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