[Rust Server] Make parse error Display-able (#5490)

* [Rust Server] Make parse error displayable

  Change error type to be displayable to prevent compile errors

* [Rust Server] Add test for enum in path

* Update samples
This commit is contained in:
Richard Whitehouse
2020-03-08 11:12:17 +00:00
committed by GitHub
parent e4be8a107f
commit 16646b39c1
16 changed files with 676 additions and 366 deletions

View File

@@ -325,6 +325,19 @@ paths:
schema:
$ref: '#/components/schemas/anotherXmlObject'
description: merge-patch+json-encoded response
/enum_in_path/{path_param}:
get:
parameters:
- explode: false
in: path
name: path_param
required: true
schema:
$ref: '#/components/schemas/StringEnum'
style: simple
responses:
"200":
description: Success
components:
schemas:
EnumWithStarObject:
@@ -480,6 +493,11 @@ components:
required:
- nullable
type: object
StringEnum:
enum:
- FOO
- BAR
type: string
inline_response_201:
properties:
foo: