Skip to content

add explicit bindings to offboard and cancelOffboard actions - #850

Merged
Ramses Sanchez-Hernandez (ramsessanchez) merged 1 commit into
masterfrom
ramsess/addExplicitBindingToOffboardActions
Jul 15, 2025
Merged

add explicit bindings to offboard and cancelOffboard actions#850
Ramses Sanchez-Hernandez (ramsessanchez) merged 1 commit into
masterfrom
ramsess/addExplicitBindingToOffboardActions

Conversation

@ramsessanchez

@ramsessanchezRamses Sanchez-Hernandez (ramsessanchez) commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

Adding explicit bindings to the offboard and cancelOffboard action prompts the following generation in the openApi documents:

 '/solutions/backupRestore/protectionUnits/{protectionUnitBase-id}/microsoft.graph.offboard':
description: Provides operations to call the offboard method.
post:
tags:
- solutions.backupRestoreRoot
summary: Invoke action offboard
description: Offboard a protectionUnitBase.
operationId: solutions.backupRestore.protectionUnits.protectionUnitBase.offboard
parameters:
- name: protectionUnitBase-id
in: path
description: The unique identifier of protectionUnitBase
required: true
schema:
type: string
x-ms-docs-key-type: protectionUnitBase
responses:
2XX:
description: Success
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/microsoft.graph.protectionUnitBase'
- type: 'null'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: action

and

 '/solutions/backupRestore/protectionUnits/{protectionUnitBase-id}/microsoft.graph.cancelOffboard':
description: Provides operations to call the cancelOffboard method.
post:
tags:
- solutions.backupRestoreRoot
summary: Invoke action cancelOffboard
description: Cancel offboard for a protectionUnitBase.
operationId: solutions.backupRestore.protectionUnits.protectionUnitBase.cancelOffboard
parameters:
- name: protectionUnitBase-id
in: path
description: The unique identifier of protectionUnitBase
required: true
schema:
type: string
x-ms-docs-key-type: protectionUnitBase
responses:
2XX:
description: Success
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/microsoft.graph.protectionUnitBase'
- type: 'null'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: action

This closesmicrosoft/OpenAPI.NET.OData#720

References microsoft/OpenAPI.NET.OData#378

@ramsessanchezRamses Sanchez-Hernandez (ramsessanchez) changed the title add ex[;icit bindings to offboard and cancelOffboard actionadd explicit bindings to offboard and cancelOffboard actionJul 14, 2025
@ramsessanchezRamses Sanchez-Hernandez (ramsessanchez) changed the title add explicit bindings to offboard and cancelOffboard actionadd explicit bindings to offboard and cancelOffboard actionsJul 14, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The transform looks fine. The failing checks don't make sense to me

@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) merged commit bba5ee8 into masterJul 15, 2025
13 of 21 checks passed
@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) deleted the ramsess/addExplicitBindingToOffboardActions branch July 15, 2025 16:59
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action bound to abstract entity type is not present in OpenAPI output when using hidi to convert from CSDL

2 participants

@ramsessanchez@MIchaelMainer