Skip to content

Lab 2097 Update Configuration Item Endpoint and Spec#156

Merged
pasha-zayko merged 7 commits into
mainfrom
LAB-2097-Implement-Data-Retrievel-from-backend
May 1, 2026
Merged

Lab 2097 Update Configuration Item Endpoint and Spec#156
pasha-zayko merged 7 commits into
mainfrom
LAB-2097-Implement-Data-Retrievel-from-backend

Conversation

@TheMartianMaker
Copy link
Copy Markdown
Contributor

No description provided.

added properties to config item endpoint
Update specs/SHIELD.json to include 'docs' and 'name' metadata: add 'docs' and 'name' to the required properties list and populate sample entries with a docs URL and name value.
Copilot AI review requested due to automatic review settings April 28, 2026 13:46
@TheMartianMaker TheMartianMaker self-assigned this Apr 28, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the SHIELD OpenAPI spec to enrich Deploy configuration item metadata with a documentation URL and human-friendly name, aligning the /Api/Deploy/Component/ConfigurationItem response shape with the updated model.

Changes:

  • Added docs (documentation URL) to Deploy.ConfigurationItem schema and marked it as required.
  • Added name (human-friendly configuration item name) to Deploy.ConfigurationItem schema and marked it as required.
  • Updated response examples to include the new fields in several places.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread specs/SHIELD.json Outdated
Comment on lines +1120 to +1126
"docs": {
"type": "string",
"description": "URL to the documentation of the Configuration Item.",
"examples": [
"https://docs.shilab.com"
]
},
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs is a URL string, but unlike other URL fields in this spec (e.g., baseLink / learnLinkList), it doesn’t declare format: "uri". Adding the URI format will make validation and client generation consistent.

Copilot uses AI. Check for mistakes.
Comment thread specs/SHIELD.json
Comment on lines +1248 to +1251
"docs",
"groupTagList",
"msCloudTypes",
"name",
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs and name were added to the schema’s required list, but the schema-level array example that follows still contains an item missing these fields (the notDeployed item in the Deploy.ConfigurationItem examples list). Update that example to include docs/name, or don’t mark these properties as required.

Suggested change
"docs",
"groupTagList",
"msCloudTypes",
"name",
"groupTagList",
"msCloudTypes",

Copilot uses AI. Check for mistakes.
Comment thread specs/SHIELD.json
"required": [
"childDependencies",
"deployState",
"docs",
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before making docs required, confirm it is always present for every configuration item. The /Api/Deploy/Component/ConfigurationItem/{templateId}/Docs endpoint description explicitly mentions documentation may be missing; if some items don’t have docs, keep docs optional (or document an explicit sentinel value).

Suggested change
"docs",

Copilot uses AI. Check for mistakes.
Comment thread specs/SHIELD.json Outdated
"Public"
],
"name": "Admin Unit - Baseline",

Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s a blank/whitespace-only line inside the JSON example object. It doesn’t change semantics, but it introduces noisy diffs and can fail strict format checks—please remove it.

Suggested change

Copilot uses AI. Check for mistakes.
fixed various copilot pr suggestions
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread specs/SHIELD.json
Comment on lines 1245 to 1252
"required": [
"childDependencies",
"deployState",
"docs",
"groupTagList",
"msCloudTypes",
"name",
"parentDependencies",
Comment thread specs/SHIELD.json Outdated
"msCloudTypes": [
"Public"
],
"name": "Conditional Policy",
pasha-zayko and others added 3 commits April 30, 2026 13:32
Specifying the format
Clarifying example value
Addressed review comments from @pasha-zayko
pr review changes from @pasha-zayko
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • src/shield/TypeScript/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread specs/SHIELD.json
Comment on lines +1249 to +1252
"docs",
"groupTagList",
"msCloudTypes",
"name",
@pasha-zayko pasha-zayko merged commit 417a7b2 into main May 1, 2026
11 of 12 checks passed
@pasha-zayko pasha-zayko deleted the LAB-2097-Implement-Data-Retrievel-from-backend branch May 1, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants