Allow aliasing resource type names

Cerrado
#1,783 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
json, rust, yaml
Área
tooling

Línea de trabajo

Start by reading the resource manifest and configuration document schemas, then trace how resource type names and the configuration version field are handled. Done means aliases can be declared and used for both resource types and configuration fields, so the two example configurations work equivalently.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Issue-Enhancement Needs Triage
Summary of the new feature / enhancement

Hi as DSC configuration administrator I see that wee need to have 2 different config for DSC resources to apply configuration

DSCv3


$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
metadata:
  author: "Michał"
  description: "WinGet packages converted from winget export"
contentVersion: "1.0"
resources:
  - name: Package-45
    type: Microsoft.WinGet/Package
    properties:
      id: Microsoft.WindowsTerminal
      source: winget
      version: 1.25.2733.0


winget DSC


$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
  author: "Michał"
  description: "WinGet packages converted from winget export"
configurationVersion: 0.2.0
resources:
  - name: Package-45
    type: Microsoft.WinGet.DSC/WinGetPackage
    properties:
      id: Microsoft.WindowsTerminal
      source: winget
      version: 1.25.2733.0

So to make this transition easier I like to have aliases for some resources:

DSC resource: WinGet Microsoft.WinGet/Package --> Alias: Microsoft.WinGet.DSC/WinGetPackage
DSC : contentVersion --> Alias: configurationVersion

This will allow to generate the same config using simple approaches

Proposed technical implementation details (optional)

Example in schema implementation

{
    "$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
    "description": "",
    "tags": [
        "Windows",
        "dism",
        "feature"
    ],
    "type": "Microsoft.WinGet/Package" ,
    "Alias"": "Microsoft.WinGet.DSC/WinGetPackage",
    "version": "0.1.1"


}

Lenguaje dominante
Rust
Estrellas
544
Forks
79
Merge medio
2 d 27 min
PR fusionados (30 d)
25

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PowerShell/DSC

Todos los issues de PowerShell/DSC

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.