Skip to content

Commit

Permalink
Merge pull request #176 from meshery/csvSchema
Browse files Browse the repository at this point in the history
update the schema to contain csv w/signoff
  • Loading branch information
Jougan-0 authored Sep 27, 2024
2 parents 9856034 + 28fcec8 commit 3077734
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
6 changes: 6 additions & 0 deletions models/v1beta1/component/component_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ func (c *ComponentDefinition) ReplaceSVGData(baseDir string) error {
} else {
return err
}
svgComplete, err := utils.ReadSVGData(baseDir, compStyle.SvgComplete)
if err == nil {
compStyle.SvgComplete = svgComplete
} else {
return err
}
}
c.Styles = compStyle
return nil
Expand Down
10 changes: 7 additions & 3 deletions models/v1beta1/import.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions schemas/constructs/openapi/mesheryHandlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ components:
- model_file
- url
- file_name
- model_csv
- component_csv
- model
properties:
model_file:
Expand All @@ -36,6 +38,10 @@ components:
type: string
file_name:
type: string
model_csv:
type: string
component_csv:
type: string
model:
$ref: '#/components/schemas/Model'

Expand Down

0 comments on commit 3077734

Please sign in to comment.