picoschema

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

nanoschema

Forked and extracted the nanoschema package from Genkit

Authors

Genkit is built by Firebase with contributions from the Open Source Community.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSchema

func ConvertSchema(s *jsonschema.Schema) (any, error)

ConvertSchema marshals s to JSON, then unmarshals the result.

func ToJSONSchema

func ToJSONSchema(val any) (*jsonschema.Schema, error)

ToJSONSchema turns picoschema input into a JSONSchema. The val parameter is the result of parsing YAML into an value of type any. picoschema is loosely documented at docs/dotprompt.md.

Types

This section is empty.

Jump to

Keyboard shortcuts

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