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