microsoft / microsoft/typespec

[http-server-javascript] Define common error shape for processing errors

Open
#3,773 0 comments 0 reactions 0 assignees View on GitHub
emitter:service:js feature triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

In the HTTP server generator for JS, there is a definition of a ValidationError that is currently just `string`. This is the type of error that is returned to user code on a validation error from the HTTP processing logic and should be extended with more information about what was wrong with the request that caused the `onInvalidRequest` handler to fire.

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.