-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Labels
Description
v3.3.4
yaml below produces a class "MyEvent" (.java) - initial letter capitalized -, but consumes that very class with lower-case (e.g. myEvent.class).
Steps:
- generate for Java
- mvn clean compile
// exp: compiles
// act: breaks "cannot find symbol symbol: class myEvent"
Root cause is apparently that code generator does capitalize, but that this capitalization is not sent into all dependent generators.
---
swagger: '2.0'
basePath: "/v1"
info:
version: "1.0.0"
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
/events:
get:
tags:
- events
operationId: "getEvents"
responses:
'200':
description: Events
schema:
$ref: '#/definitions/eventCollection'
definitions:
eventCollection:
type: object
properties:
events:
type: array
items:
$ref: '#/definitions/event'
count:
type: integer
format: int32
example: 1
required:
- events
- count
event:
type: object
discriminator: eventType
properties:
sequenceOffset:
type: integer
format: int64
eventType:
type: string
myEvent:
allOf:
- $ref: '#/definitions/event'
- type: object
properties:
id:
type: string