William Cheng 954d41b9aa
[C#] Add property, parameter naming support (#16196)
* add property, parameter naming support to c# generators

* update

* fix workflow

* update test

* update
2023-07-28 09:51:33 +08:00

68 lines
1.4 KiB
YAML

openapi: 3.0.0
info:
description: "To test name, parameter mapping options"
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
title: Dummy
version: 1.0.0
servers:
- url: /
paths:
/fake/parameter-name-mapping:
get:
operationId: getParameterNameMapping
parameters:
- description: _type
explode: false
in: header
name: _type
required: true
schema:
format: int64
type: integer
style: simple
- description: type
explode: true
in: query
name: type
required: true
schema:
type: string
style: form
- description: type_
explode: false
in: header
name: type_
required: true
schema:
type: string
style: simple
- description: http debug option (to test parameter naming option)
explode: true
in: query
name: http_debug_option
required: true
schema:
type: string
style: form
responses:
"200":
description: OK
summary: parameter name mapping test
tags:
- fake
components:
schemas:
PropertyNameMapping:
properties:
http_debug_operation:
type: string
_type:
type: string
type:
type: string
type_:
type: string