Created by: jmini
With the jaxrs-resteasy
generator, this PR fixes the outer-class enum case.
Example OAS3:
openapi: 3.0.1
info:
title: ping test
version: '1.0'
servers:
- url: 'http://localhost:8000/'
paths:
/ping:
get:
operationId: pingGet
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/ObjWithEnums'
components:
schemas:
ObjWithEnums:
type: object
properties:
SProp:
$ref: "#/components/schemas/StringEnum"
StringEnum:
type: string
enum:
- "c"
- "b"
- "a"