File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -27,23 +27,22 @@ import (
27
27
"cuelang.org/go/cue/token"
28
28
)
29
29
30
- // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#format
30
+ // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types
31
31
var cueToOpenAPI = map [string ]string {
32
32
"int32" : "int32" ,
33
33
"int64" : "int64" ,
34
34
35
35
"float64" : "double" ,
36
36
"float32" : "float" ,
37
37
38
- "string" : "string" ,
39
- "bytes" : "binary" ,
38
+ "bytes" : "binary" ,
40
39
41
- "time.Time" : "dateTime " ,
40
+ "time.Time" : "date-time " ,
42
41
`time.Format ("2006-01-02")` : "date" ,
43
42
44
43
// TODO: if a format is more strict (e.g. using zeros instead of nines
45
44
// for fractional seconds), we could still use this as an approximation.
46
- `time.Format ("2006-01-02T15:04:05.999999999Z07:00")` : "dateTime " ,
45
+ `time.Format ("2006-01-02T15:04:05.999999999Z07:00")` : "date-time " ,
47
46
48
47
// TODO: password.
49
48
}
You can’t perform that action at this time.
0 commit comments