cuelang.org/go@v0.10.1/encoding/openapi/testdata/builtins.cue (about)

     1  import (
     2  	"time"
     3  	"list"
     4  )
     5  
     6  let _time = time
     7  
     8  #MyStruct: {
     9  	timestamp1?: time.Time
    10  	timestamp2?: time.Time()
    11  	timestamp3?: time.Format(time.RFC3339Nano)
    12  	timestamp4?: _time.Time
    13  	date1?:      time.Format(time.RFC3339Date)
    14  	date2?:      _time.Format(time.RFC3339Date)
    15  
    16  	// This is not an OpenAPI type and has no format. In this case
    17  	// we map to a type so that it can be documented properly (without
    18  	// repeating it).
    19  	timeout?: time.Duration
    20  
    21  	contains: list.Contains("foo") // not supported, but should be recognized as list
    22  }