Azure / Azure/typespec-azure

Lint for non-standard array encoding in greenfield tsp

Open
#3,647 1 comment 0 reactions 0 assignees View on GitHub
feature lib:azure-core linter triaged:core
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

### Clear and concise description of the problem

As defined in https://github.com/Azure/typespec-azure/issues/3535.

e.g. `ArrayEncoding.commaDelimited` and others are being added for compat with brownfield services. We should not allow these encodings by default for greedfield.

### Checklist

- [x] Follow our [Code of Conduct](https://github.com/azure/typespec-azure/blob/main/CODE_OF_CONDUCT.md)
- [x] Check that this issue is about the Azure libraries for typespec. For feature request in the typespec language or core libraries file it in the [TypeSpec repo](https://github.com/Microsoft/TypeSpec/issues/new/choose)
- [x] Read the [docs](https://azure.github.io/typespec-azure/).
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Contributor guide

Open the contributing guide

Research direction

Start by reading the requirements in Azure/typespec-azure#3535 and the TypeSpec Azure lint configuration or rules referenced by this issue. Identify where greenfield array encoding validation is defined, then verify that non-standard encodings such as ArrayEncoding.commaDelimited are rejected by default while brownfield compatibility remains possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.