openapi-nexus 0.1.7

OpenAPI 3.x multi-language code generator
Documentation
// Code generated by openapi-nexus. DO NOT EDIT.
//
// Enum Representation API — 1.0.0
// This API demonstrates all 4 kinds of enum representation types: Externally Tagged, Internally Tagged, Adjacently Tagged, and Untagged

package com.example.sdk.models;

/**
 * Mixed enum with unit variants (SimpleA, SimpleB) and tuple variants (VariantA(VariantA), VariantB(VariantB))

Serializes as externally tagged: `{"SimpleA": null}`, `{"VariantA": {"field1": "...", "field2": 123}}`,
`{"SimpleB": null}`, `{"VariantB": {"field3": true, "field4": 1.23}}`
 */
public class MixedEnum {
    private Object value;

    public MixedEnum(Object value) {
        this.value = value;
    }

    public Object getValue() {
        return this.value;
    }
}