generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Schema] New help repo connection schema #367
Merged
Yashsharma1911
merged 6 commits into
meshery:master
from
Yashsharma1911:yash/addNewHelpRepoConnectionSchemawq
Sep 18, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e756e74
Adde new help repo connection schema
Yashsharma1911 f6f09cb
added x-rjsf-grid-area
Yashsharma1911 d517aad
added comma
Yashsharma1911 0d594d8
Apply suggestions from code review
leecalcote da6ed81
Merge branch 'master' into yash/addNewHelpRepoConnectionSchemawq
Yashsharma1911 b98fc31
moved connections in seprate file and fix not getting file error
Yashsharma1911 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ package schemas | |
|
||
import "embed" | ||
|
||
//go:embed configuration | ||
//go:embed configuration connections | ||
var Schemas embed.FS |
31 changes: 31 additions & 0 deletions
31
schemas/connections/helmConnection/helmRepoConnection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"//playground": "https://rjsf-team.github.io/react-jsonschema-form/#eyJmb3JtRGF0YSI6eyJmaXJzdE5hbWUiOiJDaHVjIiwibGFzdE5hbWUiOiJOb3JyaXMiLCJhZ2UiOjc1LCJiaW8iOiJSb3VuZGhvdXNlIGtpY2tpbm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SwicmVhZG9ubHkiOmZhbHNlLCJvbWl0RXh0cmFEYXRhIjpmYWxzZSwibGl2ZU9taXQiOmZhbHNlLCJleHBlcmltZW50YWxfZGVmYXVsdEZvcm1TdGF0ZUJlaGF2aW9yIjp7ImFycmF5TWluSXRlbXMiOiJwb3B1bGF0ZSIsImVtcHR5T2JqZWN0RmllbGRzIjoicG9wdWxhdGVBbGxEZWZhdWx0cyJ9fX0=", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"title": "Name", | ||
"minLength": 1, | ||
"description": "A short, memorable name of the Helm repository connection.", | ||
"x-rjsf-grid-area" : "12" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"title": "Description", | ||
"format": "textarea", | ||
"description": "An explanation as to the purpose and/or use of this Helm repository.", | ||
"x-rjsf-grid-area" : "12" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"title": "URL", | ||
"format": "uri", | ||
"description": "The URL (must be http/s) of the Helm repository in which one or more Helm charts are hosted.", | ||
"x-rjsf-grid-area" : "12" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"url" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"ui:order" : ["name", "description", "url"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were using embed.FS here which adds directory files/assests directly in go binary that's why it was not able to use other directories, to use other directories we need to mention name of them here