// Code generated by cuelang.org/go/pkg/gen. DO NOT EDIT.

package openapi

import (
	"cuelang.org/go/internal/core/adt"
	"cuelang.org/go/internal/pkg"
)

func init() {
	pkg.Register("encoding/openapi", p)
}

var _ = adt.TopKind // in case the adt package isn't used

var p = &pkg.Package{
	Native: []*pkg.Builtin{{
		Name: "MarshalSchema",
		Params: []pkg.Param{
			{Kind: adt.TopKind},
			{Kind: adt.TopKind},
		},
		Result:      adt.StringKind,
		NonConcrete: true,
		Func: func(c *pkg.CallCtxt) {
			config, schema := c.Value(0), c.Schema(1)
			if c.Do() {
				c.Ret, c.Err = marshalSchema(c.OpContext(), config, schema)
			}
		},
	}},
	CUE: `{
	#Config: {
		version!:         "3.0.0"
		info?:            #Info
		selfContained:    bool | *false
		expandReferences: bool | *false
	}
	#Info: {
		title!:          string
		version!:        string
		summary?:        string
		description?:    string
		termsOfService?: string
		contact?:        #Contact
		license?:        #License
	}
	#Contact: {
		name?:  string
		url?:   string
		email?: string
	}
	#License: {
		name!: string
		url?:  string
	}
}`,
}
