microsoft / microsoft/typespec
Xml attribute on scalar
Open
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
Assessment
This issue has not been assessed yet.