parameters:
  "service-dir":
    default: "sdk/astro"
output-dir: "{project-root}/"
emit:
  - "@azure-tools/typespec-autorest"
linter:
  extends:
    - "@azure-tools/typespec-azure-rulesets/resource-manager"
  disable:
    "@azure-tools/typespec-azure-resource-manager/arm-common-types-version": "New rule"
options:
  "@azure-tools/typespec-autorest":
    emitter-output-dir: "{project-root}/.."
    azure-resource-provider-folder: "resource-manager"
    emit-common-types-schema: "never"
    # `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag
    arm-resource-flattening: true
    output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/astronomer.json"
  "@azure-tools/typespec-ts":
    is-modular-library: true
    experimental-extensible-enums: true
    package-dir: "arm-astro"
    flavor: "azure"
    package-details:
      name: "@azure/arm-astro"
  "@azure-tools/typespec-python":
    package-dir: "azure-mgmt-astro"
    namespace: "azure.mgmt.astro"
    flavor: "azure"
    generate-test: true
    generate-sample: true
