Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Question] Why are some configuration keys changed to snake_case while others are still camelCase?

Aperta
#817 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
yaml
Ambito
api, documentation

Direzione di ricerca

Start with the linked configuration.extractor.yaml example and compare its key naming with the v7alpha3 configuration rules. Trace where the example or configuration schema is documented or generated; done means the naming convention and the reason for any mixed keys are made consistent or clearly documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Release version

v7.0.0-alpha.3.0.0

Question Details

Since v7alpha3 some configuration keys use snake_case, like named_values, service_policies, version_sets. However many keys still use camelCase, like apimServiceName, displayName, loggerId etc.

Why are some snake_case and others still camelCase? I find this personally super confusing and inconsistent.

For example below the new configuration.extractor.yaml example, why is workspaceName1 camelCase and then further below named_values is snake_case? To me this seems strange to mix naming conventions like this.

workspaces:
  - workspaceName1:
      apis:
        - workspaceApiName1:
            operations: []
            diagnostics: []
            schemas: []
            releases:
              - workspaceReleaseName1
      backends:
        - workspaceBackendName1
      diagnostics: []
      groups: []
      loggers:
        - workspaceLoggerName1
      named_values:
        - workspaceNamedValueName1
      policy_fragments:
        - workspacePolicyFragmentName1
      products:
        - workspaceProductName1
      subscriptions: []
      tags:
        - workspaceTagName1
      version_sets:
        - workspaceVersionSetName1
Expected behavior

Either all keys should use camelCase as it previous was or all keys should use snake_case.

Actual behavior

Some keys are camelCase, some are snake_case.

Reproduction Steps

None

Lingua principale
C#
Stelle
449
Fork
248
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/apiops

Tutte le issue di Azure/apiops

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.