Skip to content

Commit

Permalink
consolidate limit quantity schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
caindy committed Feb 4, 2024
1 parent 943bb5a commit f120ad6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 41 deletions.
16 changes: 0 additions & 16 deletions docs/_data/components/schemas/actual-power-and-factor-value.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions docs/_data/components/schemas/apparent-power-value.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions docs/_data/components/schemas/current-value.yaml

This file was deleted.

45 changes: 42 additions & 3 deletions docs/_data/components/schemas/limit.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f120ad6

Please sign in to comment.