microsoft / microsoft/typespec

Xml attribute on scalar

Open
#2,994 0 comments 0 reactions 0 assignees View on GitHub
design:needed triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

it Simple special case of allowing to specify attributes on a scalar hwere you just want to move the scalar value on an attribute of the node but with no extra properties. This is a special case where there is no difference in the data sent over json.

```xml




```

```tsp
model Foo {
tags: item[];
}

@attribute("attr") // ?
scalar item extends string;
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.