Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCueValue ¶
MarshalCueValue generates an openAPI schema for the given cue value, utilizing Cue's OpenAPI integration package. This returns a single schema for the given Cue value - the value must be a Cue struct containing type definitions.
func UnmarshalString ¶
UnmarshalString returns a cue type for an event from a JSON schema definition.
Types ¶
type Schemas ¶
type Schemas struct { // All stores all generated schemas, in a map. All map[string]map[string]interface{} }
Schemas stores all schemas generated for a cue file.
func MarshalString ¶
MarshalString generates OpenAPI schemas given cue configuration. Schemas are generated for each top-level identifier; many schemas are generated:
#Event: { name: string }
Cue types without identifiers will have no schemas generated.
Click to show internal directories.
Click to hide internal directories.