Documentation ¶
Index ¶
- func AppendMapToJsonSchema(baseConfig interface{}, mapConfig map[string]interface{}) *jschema.Schema
- func AppendOneOfToJsonSchema(baseConfig interface{}, anyOf map[string]interface{}) *jschema.Schema
- func CleanCommentDirectory() error
- func CloneCommentDirectory() error
- func GetPackageComments(rootPackagePath string) (map[string]string, error)
- type Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendMapToJsonSchema ¶ added in v0.44.0
func AppendMapToJsonSchema(baseConfig interface{}, mapConfig map[string]interface{}) *jschema.Schema
AppendMapToJsonSchema generates a jsonschema based on a baseConfig and then append a map of properties using the mapConfig.
func AppendOneOfToJsonSchema ¶ added in v0.44.0
AppendOneOfToJsonschema generates a jsonschema based on a baseConfig and then append a oneOf based on the mapConfig.
func CleanCommentDirectory ¶
func CleanCommentDirectory() error
CleanCommentDirectory will remove the main temporary directory used by updatecli.
func CloneCommentDirectory ¶
func CloneCommentDirectory() error
CloneCommentDirectory clones the updatecli git repository in a temporary location so we can parse comments
Types ¶
type Schema ¶
func (*Schema) GenerateSchema ¶
GenerateSchema generates updatecli json schema based the config struct
Click to show internal directories.
Click to hide internal directories.