guardrail-dev / guardrail-dev/guardrail
No error message emitted when invalid application/x-www-form-urlencoded specified, bug with swagger-parser
- Dominant language
- Scala
- Stars
- 541
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
Using:
- `sbt.version=1.4.7`
- guardrail version `0.62.0`
- akka-http server generator
While generating the server I get the following error.
```
Unable to generate decoder for application/x-www-form-urlencoded (.paths./Demo.operations.POST.consumes[0])
Error:No decoders available (.paths./Demo.operations.POST.consumes)
[error] (api-impl / Compile / guardrail) com.twilio.guardrail.sbt.CodegenFailedException
```
Using the following swagger spec:
```yaml
openapi: 3.0.0
info:
title: ScalaServer bug
version: 0.0.1
paths:
/Demo:
post:
operationId: test
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: string
example: Hello
responses:
'200':
description: OK
```
Contributor guide
Assessment
This issue has not been assessed yet.