this repo has no description
at master 33 lines 1.2 kB view raw
1// Code generated by "stringer -type=Version -linecomment"; DO NOT EDIT. 2 3package jsonschema 4 5import "strconv" 6 7func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[VersionUnknown-0] 12 _ = x[VersionDraft4-1] 13 _ = x[VersionDraft6-2] 14 _ = x[VersionDraft7-3] 15 _ = x[VersionDraft2019_09-4] 16 _ = x[VersionDraft2020_12-5] 17 _ = x[numJSONSchemaVersions-6] 18 _ = x[VersionOpenAPI-7] 19 _ = x[VersionKubernetesAPI-8] 20 _ = x[VersionKubernetesCRD-9] 21} 22 23const _Version_name = "unknownhttp://json-schema.org/draft-04/schema#http://json-schema.org/draft-06/schema#http://json-schema.org/draft-07/schema#https://json-schema.org/draft/2019-09/schemahttps://json-schema.org/draft/2020-12/schemaunknownOpenAPI 3.0Kubernetes APIKubernetes CRD" 24 25var _Version_index = [...]uint16{0, 7, 46, 85, 124, 168, 212, 219, 230, 244, 258} 26 27func (i Version) String() string { 28 idx := int(i) - 0 29 if i < 0 || idx >= len(_Version_index)-1 { 30 return "Version(" + strconv.FormatInt(int64(i), 10) + ")" 31 } 32 return _Version_name[_Version_index[idx]:_Version_index[idx+1]] 33}