Skip to content

Commit

Permalink
Add FallbackCodeSamplesLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbx9da4 committed Jun 30, 2024
1 parent e192ab5 commit 750a88a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion workflow/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,22 @@ import (
// Ensure your update schema/workflow.schema.json on changes
type Source struct {
Inputs []Document `yaml:"inputs"`
Overlays []Document `yaml:"overlays,omitempty"`
Overlays []Overlay `yaml:"overlays,omitempty"`
Output *string `yaml:"output,omitempty"`
Ruleset *string `yaml:"ruleset,omitempty"`
Registry *SourceRegistry `yaml:"registry,omitempty"`
}

// Either FallBackCodeSamples or Document
type Overlay struct {
FallbackCodeSamples *FallbackCodeSamples `yaml:"fallbackCodeSamples,omitempty"`
Document *Document `yaml:"document,omitempty"`
}

type FallbackCodeSamples struct {
FallbackCodeSamplesLanguage string `yaml:"fallbackCodeSamplesLanguage,omitempty"`
}

type Document struct {
Location string `yaml:"location"`
Auth *Auth `yaml:",inline"`
Expand Down

0 comments on commit 750a88a

Please sign in to comment.