Skip to content

Add monitored_components to outage schemas#14

Merged
josephmckinsey merged 3 commits into
mainfrom
copilot/add-monitored-components-to-outages-schema
Jun 16, 2026
Merged

Add monitored_components to outage schemas#14
josephmckinsey merged 3 commits into
mainfrom
copilot/add-monitored-components-to-outages-schema

Conversation

Copilot AI commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Ports the monitored_components field introduced in PowerSystems.jl#1672 to the JSON Schema definitions for outage supplemental attributes.

Changes

  • Operations/SupplementalAttributes/FixedForcedOutage.json, GeometricDistributionForcedOutage.json, PlannedOutage.json: add optional monitored_components property — an array of UUID-formatted strings with uniqueItems: true and default []. Not added to required since the upstream constructors default to an empty set.

Schema fragment

"monitored_components": {
  "type": "array",
  "items": { "type": "string", "format": "uuid" },
  "uniqueItems": true,
  "default": [],
  "description": "UUIDs of devices whose post-contingency state should be modeled when this outage occurs. Empty by default; semantics of an empty list are decided by the downstream consumer."
}

The Set{Base.UUID} upstream type is represented here as a UUID string array with uniqueItems: true. Empty-set semantics ("monitor nothing" vs. "monitor everything") are intentionally left to the downstream consumer, matching the upstream contract.

Copilot AI linked an issue Jun 2, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add monitored components to the outages schema Add monitored_components to outage schemas Jun 2, 2026
Copilot AI requested a review from jd-lara June 2, 2026 00:43
@jd-lara jd-lara requested a review from josephmckinsey June 2, 2026 00:47
@jd-lara jd-lara marked this pull request as ready for review June 2, 2026 13:37

@jd-lara jd-lara left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@josephmckinsey do we need to move the vector to ids instead of UUIDs?

@josephmckinsey

Copy link
Copy Markdown
Collaborator

@josephmckinsey do we need to move the vector to ids instead of UUIDs?

Yes.

@josephmckinsey josephmckinsey merged commit 979546f into main Jun 16, 2026
@josephmckinsey josephmckinsey deleted the copilot/add-monitored-components-to-outages-schema branch June 16, 2026 17:12
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.

Add Monitored Components to the Outages Schema

3 participants