microsoft / microsoft/typespec

[Template Parameter Constraints] Custom validation

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

Description

#377 Covers case where the constaints is valid with subtype relation

Need a way to add a custom validation for example: Checking that the type has a decorator used on it.
```cadl
@error
model Foo {}

model Bar {

}
```

## Things to fix when this is implemented
- [ ] Validate ResourceOperations argument has `@key` #375

## Proposal

https://gist.github.com/timotheeguerin/a9cde2423eb37cde14b1fad236066b23

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.