this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 58 lines 1.1 kB view raw
1// Code generated by cuelang.org/go/pkg/gen. DO NOT EDIT. 2 3package openapi 4 5import ( 6 "cuelang.org/go/internal/core/adt" 7 "cuelang.org/go/internal/pkg" 8) 9 10func init() { 11 pkg.Register("encoding/openapi", p) 12} 13 14var _ = adt.TopKind // in case the adt package isn't used 15 16var p = &pkg.Package{ 17 Native: []*pkg.Builtin{{ 18 Name: "MarshalSchema", 19 Params: []pkg.Param{ 20 {Kind: adt.TopKind}, 21 {Kind: adt.TopKind}, 22 }, 23 Result: adt.StringKind, 24 NonConcrete: true, 25 Func: func(c *pkg.CallCtxt) { 26 config, schema := c.Value(0), c.Schema(1) 27 if c.Do() { 28 c.Ret, c.Err = marshalSchema(c.OpContext(), config, schema) 29 } 30 }, 31 }}, 32 CUE: `{ 33 #Config: { 34 version!: "3.0.0" 35 info?: #Info 36 selfContained: bool | *false 37 expandReferences: bool | *false 38 } 39 #Info: { 40 title!: string 41 version!: string 42 summary?: string 43 description?: string 44 termsOfService?: string 45 contact?: #Contact 46 license?: #License 47 } 48 #Contact: { 49 name?: string 50 url?: string 51 email?: string 52 } 53 #License: { 54 name!: string 55 url?: string 56 } 57}`, 58}