fix(api-docs): Corrected styling of nested objects in AsyncAPI to avoid inappropriate uppercasing of nested objects

Fixes #16848

Signed-off-by: Justin Edelson <jedelson@pagerduty.com>
This commit is contained in:
Justin Edelson
2023-03-14 10:44:44 -04:00
parent b72087cb53
commit ca50c3bbea
3 changed files with 26 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
Corrected styling of nested objects in AsyncAPI to avoid inappropriate uppercase text transformation of nested objects.
@@ -133,6 +133,8 @@ spec:
description: Light intensity measured in lumens.
sentAt:
$ref: "#/components/schemas/sentAt"
sentBy:
$ref: "#/components/schemas/sentBy"
turnOnOffPayload:
type: object
properties:
@@ -144,6 +146,8 @@ spec:
description: Whether to turn on or off the light.
sentAt:
$ref: "#/components/schemas/sentAt"
sentBy:
$ref: "#/components/schemas/sentBy"
dimLightPayload:
type: object
properties:
@@ -154,10 +158,25 @@ spec:
maximum: 100
sentAt:
$ref: "#/components/schemas/sentAt"
sentBy:
$ref: "#/components/schemas/sentBy"
sentAt:
type: string
format: date-time
description: Date and time when the message was sent.
sentBy:
type: object
description: Description of the message sender.
properties:
name:
type: string
description: Name of the sender.
type:
type: string
description: Type of the sender.
enum:
- user
- machine
securitySchemes:
apiKey:
@@ -76,6 +76,8 @@ const useStyles = makeStyles((theme: BackstageTheme) => ({
...theme.typography.button,
borderRadius: theme.shape.borderRadius,
color: theme.palette.primary.main,
// override whatever may be in the theme's typography to ensure consistency with asyncapi
textTransform: 'inherit',
},
'& a': {
color: theme.palette.link,