Skip to content

Commit

Permalink
chore: update schemas (#1024)
Browse files Browse the repository at this point in the history
Co-authored-by: Moshe Immermam <[email protected]>
  • Loading branch information
flankbot and moshloop authored Sep 6, 2024
1 parent c21c323 commit 69d61a0
Show file tree
Hide file tree
Showing 60 changed files with 35,478 additions and 257 deletions.
3,983 changes: 3,982 additions & 1 deletion schema/openapi/canary.schema.json

Large diffs are not rendered by default.

279 changes: 249 additions & 30 deletions schema/openapi/canary.spec.schema.json

Large diffs are not rendered by default.

4,460 changes: 4,459 additions & 1 deletion schema/openapi/component.schema.json

Large diffs are not rendered by default.

303 changes: 273 additions & 30 deletions schema/openapi/component.spec.schema.json

Large diffs are not rendered by default.

515 changes: 514 additions & 1 deletion schema/openapi/config_aws.schema.json

Large diffs are not rendered by default.

474 changes: 473 additions & 1 deletion schema/openapi/config_azure.schema.json

Large diffs are not rendered by default.

462 changes: 461 additions & 1 deletion schema/openapi/config_azuredevops.schema.json

Large diffs are not rendered by default.

380 changes: 379 additions & 1 deletion schema/openapi/config_file.schema.json
Original file line number Diff line number Diff line change
@@ -1 +1,379 @@
{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/flanksource/config-db/api/v1/file","$ref":"#/$defs/File","$defs":{"ChangeMapping":{"properties":{"filter":{"type":"string"},"type":{"type":"string"},"action":{"type":"string"},"summary":{"type":"string"}},"additionalProperties":false,"type":"object"},"ConfigFieldExclusion":{"properties":{"types":{"items":{"type":"string"},"type":"array"},"jsonpath":{"type":"string"}},"additionalProperties":false,"type":"object","required":["jsonpath"]},"ConfigProperties":{"properties":{"label":{"type":"string"},"name":{"type":"string"},"tooltip":{"type":"string"},"icon":{"type":"string"},"type":{"type":"string"},"color":{"type":"string"},"order":{"type":"integer"},"headline":{"type":"boolean"},"text":{"type":"string"},"value":{"type":"integer"},"unit":{"type":"string"},"max":{"type":"integer"},"min":{"type":"integer"},"status":{"type":"string"},"lastTransition":{"type":"string"},"links":{"items":{"$ref":"#/$defs/Link"},"type":"array"},"filter":{"type":"string"}},"additionalProperties":false,"type":"object"},"File":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"items":{"type":"string"},"type":{"type":"string"},"class":{"type":"string"},"transform":{"$ref":"#/$defs/Transform"},"format":{"type":"string"},"timestampFormat":{"type":"string"},"createFields":{"items":{"type":"string"},"type":"array"},"deleteFields":{"items":{"type":"string"},"type":"array"},"labels":{"$ref":"#/$defs/JSONStringMap"},"tags":{"$ref":"#/$defs/Tags"},"properties":{"items":{"$ref":"#/$defs/ConfigProperties"},"type":"array"},"url":{"type":"string"},"paths":{"items":{"type":"string"},"type":"array"},"ignore":{"items":{"type":"string"},"type":"array"},"icon":{"type":"string"},"connection":{"type":"string"}},"additionalProperties":false,"type":"object"},"JSONStringMap":{"additionalProperties":{"type":"string"},"type":"object"},"Link":{"properties":{"type":{"type":"string"},"url":{"type":"string"},"tooltip":{"type":"string"},"icon":{"type":"string"},"text":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false,"type":"object"},"Mask":{"properties":{"selector":{"type":"string"},"jsonpath":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false,"type":"object"},"MaskList":{"items":{"$ref":"#/$defs/Mask"},"type":"array"},"RelationshipConfig":{"properties":{"id":{"$ref":"#/$defs/RelationshipLookup"},"name":{"$ref":"#/$defs/RelationshipLookup"},"type":{"$ref":"#/$defs/RelationshipLookup"},"agent":{"$ref":"#/$defs/RelationshipLookup"},"labels":{"additionalProperties":{"type":"string"},"type":"object"},"expr":{"type":"string"},"filter":{"type":"string"}},"additionalProperties":false,"type":"object"},"RelationshipLookup":{"properties":{"expr":{"type":"string"},"value":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false,"type":"object"},"Tag":{"properties":{"name":{"type":"string"},"label":{"type":"string"},"jsonpath":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false,"type":"object","required":["name"]},"Tags":{"items":{"$ref":"#/$defs/Tag"},"type":"array"},"Transform":{"properties":{"gotemplate":{"type":"string"},"jsonpath":{"type":"string"},"expr":{"type":"string"},"javascript":{"type":"string"},"exclude":{"items":{"$ref":"#/$defs/ConfigFieldExclusion"},"type":"array"},"mask":{"$ref":"#/$defs/MaskList"},"relationship":{"items":{"$ref":"#/$defs/RelationshipConfig"},"type":"array"},"changes":{"$ref":"#/$defs/TransformChange"}},"additionalProperties":false,"type":"object"},"TransformChange":{"properties":{"mapping":{"items":{"$ref":"#/$defs/ChangeMapping"},"type":"array"},"exclude":{"items":{"type":"string"},"type":"array"}},"additionalProperties":false,"type":"object"}}}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/flanksource/config-db/api/v1/file",
"$ref": "#/$defs/File",
"$defs": {
"ChangeMapping": {
"properties": {
"filter": {
"type": "string"
},
"severity": {
"type": "string"
},
"type": {
"type": "string"
},
"action": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigFieldExclusion": {
"properties": {
"types": {
"items": {
"type": "string"
},
"type": "array"
},
"jsonpath": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"jsonpath"
]
},
"ConfigProperties": {
"properties": {
"label": {
"type": "string"
},
"name": {
"type": "string"
},
"tooltip": {
"type": "string"
},
"icon": {
"type": "string"
},
"type": {
"type": "string"
},
"color": {
"type": "string"
},
"order": {
"type": "integer"
},
"headline": {
"type": "boolean"
},
"text": {
"type": "string"
},
"value": {
"type": "integer"
},
"unit": {
"type": "string"
},
"max": {
"type": "integer"
},
"min": {
"type": "integer"
},
"status": {
"type": "string"
},
"lastTransition": {
"type": "string"
},
"links": {
"items": {
"$ref": "#/$defs/Link"
},
"type": "array"
},
"filter": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"File": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"items": {
"type": "string"
},
"type": {
"type": "string"
},
"class": {
"type": "string"
},
"format": {
"type": "string"
},
"status": {
"type": "string"
},
"health": {
"type": "string"
},
"timestampFormat": {
"type": "string"
},
"createFields": {
"items": {
"type": "string"
},
"type": "array"
},
"deleteFields": {
"items": {
"type": "string"
},
"type": "array"
},
"transform": {
"$ref": "#/$defs/Transform"
},
"labels": {
"$ref": "#/$defs/JSONStringMap"
},
"tags": {
"$ref": "#/$defs/Tags"
},
"properties": {
"items": {
"$ref": "#/$defs/ConfigProperties"
},
"type": "array"
},
"url": {
"type": "string"
},
"paths": {
"items": {
"type": "string"
},
"type": "array"
},
"ignore": {
"items": {
"type": "string"
},
"type": "array"
},
"icon": {
"type": "string"
},
"connection": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"JSONStringMap": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"Link": {
"properties": {
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"tooltip": {
"type": "string"
},
"icon": {
"type": "string"
},
"text": {
"type": "string"
},
"label": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"Lookup": {
"properties": {
"expr": {
"type": "string"
},
"value": {
"type": "string"
},
"label": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"Mask": {
"properties": {
"selector": {
"type": "string"
},
"jsonpath": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"MaskList": {
"items": {
"$ref": "#/$defs/Mask"
},
"type": "array"
},
"RelationshipConfig": {
"properties": {
"id": {
"$ref": "#/$defs/Lookup"
},
"external_id": {
"$ref": "#/$defs/Lookup"
},
"name": {
"$ref": "#/$defs/Lookup"
},
"namespace": {
"$ref": "#/$defs/Lookup"
},
"type": {
"$ref": "#/$defs/Lookup"
},
"agent": {
"$ref": "#/$defs/Lookup"
},
"scope": {
"$ref": "#/$defs/Lookup"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"expr": {
"type": "string"
},
"filter": {
"type": "string"
},
"parent": {
"type": "boolean"
}
},
"additionalProperties": false,
"type": "object"
},
"Tag": {
"properties": {
"name": {
"type": "string"
},
"label": {
"type": "string"
},
"jsonpath": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name"
]
},
"Tags": {
"items": {
"$ref": "#/$defs/Tag"
},
"type": "array"
},
"Transform": {
"properties": {
"gotemplate": {
"type": "string"
},
"jsonpath": {
"type": "string"
},
"expr": {
"type": "string"
},
"javascript": {
"type": "string"
},
"exclude": {
"items": {
"$ref": "#/$defs/ConfigFieldExclusion"
},
"type": "array"
},
"mask": {
"$ref": "#/$defs/MaskList"
},
"relationship": {
"items": {
"$ref": "#/$defs/RelationshipConfig"
},
"type": "array"
},
"changes": {
"$ref": "#/$defs/TransformChange"
}
},
"additionalProperties": false,
"type": "object"
},
"TransformChange": {
"properties": {
"mapping": {
"items": {
"$ref": "#/$defs/ChangeMapping"
},
"type": "array"
},
"exclude": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object"
}
}
}
Loading

0 comments on commit 69d61a0

Please sign in to comment.