Skip to content

Change type to enum to discriminate included items in the response of ListCatalogEntity #28232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-20 15:02:45.574260",
"spec_repo_commit": "0f5c928e"
"regenerated": "2025-03-24 15:00:10.229719",
"spec_repo_commit": "764de5f0"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-20 15:02:53.904925",
"spec_repo_commit": "0f5c928e"
"regenerated": "2025-03-24 15:00:18.906217",
"spec_repo_commit": "764de5f0"
}
}
}
4 changes: 2 additions & 2 deletions content/en/api/v2/software-catalog/examples.json

Large diffs are not rendered by default.

50 changes: 40 additions & 10 deletions data/api/v2/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11809,9 +11809,15 @@ components:
description: Incident ID.
type: string
type:
description: Incident description.
type: string
$ref: '#/components/schemas/EntityResponseIncludedIncidentType'
type: object
EntityResponseIncludedIncidentType:
description: Incident description.
enum:
- incident
type: string
x-enum-varnames:
- INCIDENT
EntityResponseIncludedOncall:
description: Included oncall.
properties:
Expand All @@ -11821,9 +11827,15 @@ components:
description: Oncall ID.
type: string
type:
description: Oncall type.
type: string
$ref: '#/components/schemas/EntityResponseIncludedOncallType'
type: object
EntityResponseIncludedOncallType:
description: Oncall type.
enum:
- oncall
type: string
x-enum-varnames:
- ONCALL
EntityResponseIncludedRawSchema:
description: Included raw schema.
properties:
Expand All @@ -11833,8 +11845,7 @@ components:
description: Raw schema ID.
type: string
type:
description: Raw schema type.
type: string
$ref: '#/components/schemas/EntityResponseIncludedRawSchemaType'
type: object
EntityResponseIncludedRawSchemaAttributes:
description: Included raw schema attributes.
Expand All @@ -11843,6 +11854,13 @@ components:
description: Schema from user input in base64 encoding.
type: string
type: object
EntityResponseIncludedRawSchemaType:
description: Raw schema type.
enum:
- rawSchema
type: string
x-enum-varnames:
- RAW_SCHEMA
EntityResponseIncludedRelatedEntity:
description: Included related entity.
properties:
Expand All @@ -11854,8 +11872,7 @@ components:
meta:
$ref: '#/components/schemas/EntityResponseIncludedRelatedEntityMeta'
type:
description: Related entity.
type: string
$ref: '#/components/schemas/EntityResponseIncludedRelatedEntityType'
type: object
EntityResponseIncludedRelatedEntityAttributes:
description: Related entity attributes.
Expand Down Expand Up @@ -11891,6 +11908,13 @@ components:
description: Entity relation source.
type: string
type: object
EntityResponseIncludedRelatedEntityType:
description: Related entity.
enum:
- relatedEntity
type: string
x-enum-varnames:
- RELATED_ENTITY
EntityResponseIncludedRelatedIncidentAttributes:
description: Incident attributes.
properties:
Expand Down Expand Up @@ -11948,15 +11972,21 @@ components:
description: Entity ID.
type: string
type:
description: Schema type.
type: string
$ref: '#/components/schemas/EntityResponseIncludedSchemaType'
type: object
EntityResponseIncludedSchemaAttributes:
description: Included schema.
properties:
schema:
$ref: '#/components/schemas/EntityV3'
type: object
EntityResponseIncludedSchemaType:
description: Schema type.
enum:
- schema
type: string
x-enum-varnames:
- SCHEMA
EntityResponseMeta:
description: Entity metadata.
properties:
Expand Down
Loading
Loading