Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created Nov 3, 2021
Embed
What would you like to do?
const mappers: HttpProblemExtensionMapper[] = [
{
type: 'https://example.net/validation-error',
map: (object: any) =>
new ProblemDocumentExtension({
'invalid-params': object['invalid-params']
})
}
]
const problemDetails = fromJSON(status400JSON, mappers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment