Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypesRootDir = "types" CommonSchema FileName = "common/schema.yaml" WorkspaceSchema FileName = "workspace/schema.yaml" ConfigSchema FileName = "config/schema.yaml" ExecutableSchema FileName = "executable/executable_schema.yaml" FlowfileSchema FileName = "executable/flowfile_schema.yaml" CommonDefinitionTitle = "Common" WorkspaceDefinitionTitle = "Workspace" ConfigDefinitionTitle = "Config" ExecutableDefinitionTitle = "Executable" FlowfileDefinitionTitle = "FlowFile" )
Variables ¶
View Source
var ( SchemaFilesForDocs = []FileName{ CommonSchema, WorkspaceSchema, ConfigSchema, ExecutableSchema, FlowfileSchema, } )
Functions ¶
func MergeSchemas ¶
func MergeSchemas(dst, src *JSONSchema, dstFile FileName, schemaMap map[FileName]*JSONSchema)
func RegisteredSchemaMap ¶
func RegisteredSchemaMap() map[FileName]*JSONSchema
Types ¶
type FileName ¶
type FileName string
func (FileName) JSONSchemaFile ¶
func (FileName) MarkdownFile ¶
type JSONSchema ¶
type JSONSchema struct { Schema string `json:"$schema,omitempty" yaml:"$schema,omitempty"` Ref Ref `json:"$ref,omitempty" yaml:"$ref,omitempty"` ID string `json:"$id,omitempty" yaml:"$id,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Type string `json:"type,omitempty" yaml:"type,omitempty"` Required []string `json:"required,omitempty" yaml:"required,omitempty"` Default interface{} `json:"default,omitempty" yaml:"default,omitempty"` Enum []string `json:"enum,omitempty" yaml:"enum,omitempty"` Definitions map[FieldKey]*JSONSchema `json:"definitions,omitempty" yaml:"definitions,omitempty"` Properties map[FieldKey]*JSONSchema `json:"properties,omitempty" yaml:"properties,omitempty"` AdditionalProperties *JSONSchema `json:"additionalProperties,omitempty" yaml:"additionalProperties,omitempty"` Items *JSONSchema `json:"items,omitempty" yaml:"items,omitempty"` Ext SchemaExt `json:"-" yaml:"goJSONSchema,omitempty"` }
Click to show internal directories.
Click to hide internal directories.