Skip to content

oneOf & anyOf: does not work in schema object #134

Closed
@SENIAN

Description

@SENIAN

OpenAPI Spec:

        ResponseMessage:
                type: object
                properties:
                    correlationId:
                        type: string
                    resultCode:
                        type: integer
                    resultDetails:
                        $ref: '#/components/schemas/MessageDetails'
                    reference:
                        oneOf:
                        - $ref: '#/components/schemas/x'
                        - $ref: '#/components/schemas/y'
                        - $ref: '#/components/schemas/z'
Compilation error:

[ERROR] target/generated-sources/com/cc/rest/api/model/ResponseMessage.java:[56,33] cannot find symbol
[ERROR]   symbol:   class ResponseMessageRfsReference
[ERROR]   location: class com.cc.rest.api.model.ResponseMessage

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions