Skip to content

Commit

Permalink
Merge pull request #354 from Yashsharma1911/yash/addSchema
Browse files Browse the repository at this point in the history
[Schema] Added publish modal schema
  • Loading branch information
leecalcote authored Aug 28, 2023
2 parents c323522 + b9d22cf commit be5ca0b
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 51 deletions.
57 changes: 57 additions & 0 deletions schemas/configuration/publishCatalogItem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"//playground": "https://rjsf-team.github.io/react-jsonschema-form/#eyJmb3JtRGF0YSI6eyJjb21wYXRpYmlsaXR5IjpbImlzdGlvIl0sInR5cGUiOiJkZXBsb3ltZW50IiwiZmlyc3ROYW1lIjoiQ2h1Y2siLCJsYXN0TmFtZSI6Ik5vcnJpcyIsImFnZSI6NzUsImJpbyI6IlJvdW5kaG91c2Uga2lja2luZyBhc3NlcyBzaW5jZSAxOTQwIiwicGFzc3dvcmQiOiJub25lZWQiLCJ0ZWxlcGhvbmUiOiIxLTgwMC1LSUNLQVNTIn0sInNjaGVtYSI6eyJ0eXBlIjoib2JqZWN0IiwicHJvcGVydGllcyI6eyJjb21wYXRpYmlsaXR5Ijp7InR5cGUiOiJhcnJheSIsInRpdGxlIjoiVGVjaG5vbG9neSIsIml0ZW1zIjp7ImVudW0iOlsiaXN0aW8iLCJsaW5rZXJkIl0sInR5cGUiOiJzdHJpbmcifSwidW5pcXVlSXRlbXMiOnRydWUsIm1pbkl0ZW1zIjoxLCJkZXNjcmlwdGlvbiI6IlRoZSBsaXN0IG9mIGNvbXBhdGlibGUgdGVjaG5vbG9naWVzLiIsIngtcmpzZi1ncmlkLWFyZWEiOjZ9LCJwYXR0ZXJuX2NhdmVhdHMiOnsidHlwZSI6InN0cmluZyIsInRpdGxlIjoiQ2F2ZWF0cyBhbmQgQ29uc2lkZXJhdGlvbnMiLCJkZXNjcmlwdGlvbiI6IkNhdmVhdHMgcmVsYXRlZCB0byB0aGUgZGVzaWduLiIsImZvcm1hdCI6InRleHRhcmVhIiwie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GF2aW9yIjp7ImFycmF5TWluSXRlbXMiOiJwb3B1bGF0ZSIsImVtcHR5T2JqZWN0RmllbGRzIjoicG9wdWxhdGVBbGxEZWZhdWx0cyJ9fX0=",
"type": "object",
"properties": {
"compatibility": {
"type": "array",
"title": "Technology",
"items": {
"enum": [
"kubernetes",
],
"type": "string"
},
"uniqueItems": true,
"minItems": 1,
"description": "A list of technologies included in or implicated by this design; a list of relevant technology tags.",
"x-rjsf-grid-area": 6
},
"pattern_caveats": {
"type": "string",
"title": "Caveats and Considerations",
"description": "Specific stipulations to consider and known behaviors to be aware of when using this design.",
"format": "textarea",
"x-rjsf-grid-area": 12
},
"pattern_info": {
"type": "string",
"title": "Description",
"description": "Purpose of the design along with its intended and unintended uses.",
"format": "textarea",
"x-rjsf-grid-area": 12
},
"type": {
"type": "string",
"title": "Type",
"enum": [
"deployment",
"observability",
"resiliency",
"scaling",
"security",
"traffic-management",
"troubleshooting",
"workloads"
],
"default": "deployment",
"description": "Categorization of the type of design or operational flow depicted in this design.",
"x-rjsf-grid-area": 6
}
},
"required": [
"compatibility",
"pattern_caveats",
"pattern_info",
"type"
]
}
49 changes: 0 additions & 49 deletions schemas/configuration/publishSchema.json

This file was deleted.

File renamed without changes.
Empty file removed schemas/publish/publishModal.json
Empty file.
4 changes: 2 additions & 2 deletions schemas/schemaProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func getSchemaMap() map[string]string {
"application": "configuration/applicationImport.json",
"filter": "configuration/filterImport.json",
"design": "configuration/designImport.json",
"publish": "publish/publishModal.json",
"publish": "configuration/publishCatalogItem.json",
}
}

Expand All @@ -18,7 +18,7 @@ func getUiSchemaMap() map[string]string {
"application": "configuration/uiSchemaApplication.json",
"design": "configuration/uiSchemaDesignImport.json",
"filter": "configuration/uiSchemaFilter.json",
"publish": "publish/uiSchemaPublishSchema.json",
"publish": "configuration/uiSchemaPublishCatalogItem.json",
}
}

Expand Down

0 comments on commit be5ca0b

Please sign in to comment.