forked from loafle/openapi-generator-original
[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:
committed by
GitHub
parent
e4be8a107f
commit
16646b39c1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user