Back to Azure Sdk For

Azure.Communication.Rooms

sdk/communication/Azure.Communication.Rooms/src/autorest.md

2019-05-16T16-521.0 KB
Original Source

Azure.Communication.Rooms

When a new version of the swagger needs to be updated:

  1. Open Azure.Communication.sln and under sdk\communication, run dotnet msbuild /t:GenerateCode to generate code.

  2. Upload the Azure.Communication.Call.dll to the apiview.dev tool. If any of the new objects needs to be overwritten, add the required changes to the 'Models' folder.

  3. Repeat 2 and 3 until the desired interface is reflected in the apiview.dev.

AutoRest Configuration

see https://aka.ms/autorest

yaml
title: Rooms
model-namespace: false
require:
    - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1175ddba07ff5e3040bb3b15fe7fe59453f1ef7a/specification/communication/data-plane/Rooms/readme.md
payload-flattening-threshold: 10
clear-output-folder: true
generation1-convenience-client: true
yaml
# Add nullable annotations
directive:
  - from: swagger-document
    where: $.definitions.ParticipantProperties
    transform: >
      $.properties.role["x-nullable"] = true;