Skip to content

[CLI] The aaz dev server, on import of a new spec in a workspace, will create the examples without the required quotes. #556

Description

@abossard

Summary

When working on the health models extension generation I noticed this issue:

Original example:
https://github.com/Azure/azure-rest-api-specs/blob/9ee5902c9557817bc4a859ebc13f757515aac5d7/specification/cloudhealth/CloudHealth.Management/examples/2025-05-01-preview/Entities_CreateOrUpdate.json#L12

Image

has a display name with space in it.

After importing into aaz-dev:

Image the example doesn't have the required quotes around the `--displayName` parameter.

Steps to reproduce

  1. Create a new workspace
  2. Import e.g. the cloudhealth api sepcs
  3. Check the imported example

Expected behavior

Ideally it would add the quotes in that situation

az ... --display-name "My entity" ...

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions