From f120ad692672a3cbfc7567e13ecea3bedc86daf2 Mon Sep 17 00:00:00 2001 From: Christopher Atkins Date: Sun, 4 Feb 2024 18:34:40 +0000 Subject: [PATCH] consolidate limit quantity schemas --- .../actual-power-and-factor-value.yaml | 16 ------- .../schemas/apparent-power-value.yaml | 11 ----- .../components/schemas/current-value.yaml | 11 ----- docs/_data/components/schemas/limit.yaml | 45 +++++++++++++++++-- 4 files changed, 42 insertions(+), 41 deletions(-) delete mode 100644 docs/_data/components/schemas/actual-power-and-factor-value.yaml delete mode 100644 docs/_data/components/schemas/apparent-power-value.yaml delete mode 100644 docs/_data/components/schemas/current-value.yaml diff --git a/docs/_data/components/schemas/actual-power-and-factor-value.yaml b/docs/_data/components/schemas/actual-power-and-factor-value.yaml deleted file mode 100644 index 1b30501..0000000 --- a/docs/_data/components/schemas/actual-power-and-factor-value.yaml +++ /dev/null @@ -1,16 +0,0 @@ -type: object -description: >- - Representation of a limit using a combination of actual power in MW and an - assumed power factor in MVA/MW -additionalProperties: false -properties: - mw: - type: number - format: float - minimum: 1 - maximum: 10000 - pf: - type: number - format: float - minimum: 0 - maximum: 1 diff --git a/docs/_data/components/schemas/apparent-power-value.yaml b/docs/_data/components/schemas/apparent-power-value.yaml deleted file mode 100644 index 6766682..0000000 --- a/docs/_data/components/schemas/apparent-power-value.yaml +++ /dev/null @@ -1,11 +0,0 @@ -type: object -description: >- - Representation of a limit in megavolt-amperes. This is the recommended - default for limits in TROLIE -additionalProperties: false -properties: - mva: - type: number - format: float - minimum: 1 - maximum: 10000 diff --git a/docs/_data/components/schemas/current-value.yaml b/docs/_data/components/schemas/current-value.yaml deleted file mode 100644 index 04903bf..0000000 --- a/docs/_data/components/schemas/current-value.yaml +++ /dev/null @@ -1,11 +0,0 @@ -type: object -description: >- - Representation of a limit in amps. Assumes that TROLIE has a nominal voltage - in its model. -additionalProperties: false -properties: - amps: - type: number - format: float - minimum: 1 - maximum: 100000 diff --git a/docs/_data/components/schemas/limit.yaml b/docs/_data/components/schemas/limit.yaml index 453649d..09c4b6a 100644 --- a/docs/_data/components/schemas/limit.yaml +++ b/docs/_data/components/schemas/limit.yaml @@ -1,5 +1,44 @@ type: object +title: Limit oneOf: - - $ref: ./apparent-power-value.yaml - - $ref: ./current-value.yaml - - $ref: ./actual-power-and-factor-value.yaml + - type: object + title: Actual Power and Power Factor + description: >- + Representation of a limit using a combination of actual power in MW and an + assumed power factor in MVA/MW + additionalProperties: false + properties: + mw: + type: number + format: float + minimum: 1 + maximum: 10000 + pf: + type: number + format: float + minimum: 0 + maximum: 1 + - type: object + title: Apparent Power Value + description: >- + Representation of a limit in megavolt-amperes. This is the recommended + default for limits in TROLIE + additionalProperties: false + properties: + mva: + type: number + format: float + minimum: 1 + maximum: 10000 + - type: object + title: Current + description: >- + Representation of a limit in amps. Assumes that TROLIE has a nominal voltage + in its model. + additionalProperties: false + properties: + amps: + type: number + format: float + minimum: 1 + maximum: 100000