Skip to content

Commit

Permalink
update tag relationship.type; add id for relationship
Browse files Browse the repository at this point in the history
Signed-off-by: MUzairS15 <[email protected]>
  • Loading branch information
MUzairS15 committed Aug 12, 2024
1 parent da7952c commit 3780007
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 6 deletions.
18 changes: 17 additions & 1 deletion models/v1alpha3/relationship/relationship.go

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

40 changes: 35 additions & 5 deletions schemas/constructs/v1alpha3/relationship.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@
"$id": "https://schemas.meshery.io/relationship.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Relationships define the nature of interaction between interconnected components in Meshery. The combination of relationship properties kind, type, and subtype characterize various genealogical relations among and between components. Relationships have selectors, selector sets, metadata, and optional parameters. Learn more at https://docs.meshery.io/concepts/logical/relationships.",
"required": ["schemaVersion", "version", "model", "kind", "type", "subType"],
"required": [
"schemaVersion",
"version",
"model",
"kind",
"type",
"subType"
],
"additionalProperties": false,
"type": "object",
"properties": {
"id": {
"description": "Uniquely identifies the entity (i.e. component) as defined in a declaration (i.e. design).",
"$ref": "../core.json#/definitions/uuid"
},
"schemaVersion": {
"$ref": "../core.json#/definitions/versionString",
"description": "Specifies the version of the schema used for the relationship definition."
Expand All @@ -21,16 +32,36 @@
"kind": {
"$ref": "../core.json#/definitions/inputString",
"description": "Kind of the Relationship. Learn more about relationships - https://docs.meshery.io/concepts/logical/relationships.",
"enum": ["hierarchical", "edge", "sibling"]
"enum": [
"hierarchical",
"edge",
"sibling"
]
},
"type": {
"$ref": "../core.json#/definitions/inputString",
"description": "Classification of relationships. Used to group relationships similar in nature."
"description": "Classification of relationships. Used to group relationships similar in nature.",
"x-go-name": "RelationshipType",
"gorm": "column:type"
},
"subType": {
"$ref": "../core.json#/definitions/inputString",
"description": "Most granular unit of relationship classification. The combination of Kind, Type and SubType together uniquely identify a Relationship."
},
"status": {
"type": "string",
"description": "Status of the relationship.",
"default": "enabled",
"enum": [
"ignored",
"enabled",
"deleted"
],
"x-oapi-codegen-extra-tags": {
"yaml": "status",
"json": "status"
}
},
"evaluationQuery": {
"$ref": "../core.json#/definitions/inputString",
"description": "Optional. Assigns the policy to be used for the evaluation of the relationship. Deprecation Notice: In the future, this property is either to be removed or to it is to be an array of optional policy $refs."
Expand Down Expand Up @@ -68,5 +99,4 @@
}
}
}
}

}

0 comments on commit 3780007

Please sign in to comment.