org.sdase.commons.server.cloudevents.BaseCloudEvent Maven / Gradle / Ivy
package org.sdase.commons.server.cloudevents;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
public abstract class BaseCloudEvent {
@Schema(
description =
"""
The version of the CloudEvents specification which the event uses. This enables the interpretation of the context. Compliant event producers MUST use a value of `1.0` when referring to this version of the specification.
Currently, this attribute will only have the 'major' and 'minor' version numbers included in it. This allows for 'patch' changes to the specification to be made without changing this property's value in the serialization. Note: for 'release candidate' releases a suffix might be used for testing purposes.""",
example = "1.0")
@NotEmpty
private String specversion;
public String getSpecversion() {
return specversion;
}
public BaseCloudEvent setSpecversion(String specversion) {
this.specversion = specversion;
return this;
}
}