Skip to content

Union type support broken #289

Description

@Phil-Ba

Currently trying to use union types leads to a NullPointerException:

Caused by: java.lang.NullPointerException
at com.phoenixnap.oss.ramlplugin.raml2code.interpreters.UnionTypeInterpreter.getParent(UnionTypeInterpreter.java:69)
at com.phoenixnap.oss.ramlplugin.raml2code.interpreters.UnionTypeInterpreter.interpret(UnionTypeInterpreter.java:115)
at com.phoenixnap.oss.ramlplugin.raml2code.helpers.RamlTypeHelper.mapTypeToPojo(RamlTypeHelper.java:100)
at com.phoenixnap.oss.ramlplugin.raml2code.plugin.SpringMvcEndpointGeneratorMojo.generateUnreferencedObjects(Spring

Example:

types:
  boolOrString:
    displayName: test
    type: string | boolean

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedv2Feature will be implemented in v2.0 only (master branch)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions