Removed methods in restconf-openapi which always return null. These
are the remnants from implementation rewrite done in NETCONF-938.
Change-Id: I43d8bffeb2ba1df2d6a5bba70715ce0c2e307fa4
Signed-off-by: lubos-cicut <lubos.cicut@pantheon.tech>
protected @NonNull abstract String operation();
protected @NonNull abstract String operation();
- @Nullable Boolean deprecated() {
- return Boolean.FALSE;
- }
-
@NonNull String description() {
return schema == null ? "" : schema.getDescription().orElse("");
}
@NonNull String description() {
return schema == null ? "" : schema.getDescription().orElse("");
}
@Override
public void generate(@NonNull JsonGenerator generator) throws IOException {
generator.writeObjectFieldStart(path);
@Override
public void generate(@NonNull JsonGenerator generator) throws IOException {
generator.writeObjectFieldStart(path);
- final var ref = ref();
- if (ref != null) {
- generator.writeStringField("$ref", ref);
- }
- final var summary = summary();
- if (summary != null) {
- generator.writeStringField("summary", summary);
- }
- final var description = description();
- if (ref != null) {
- generator.writeStringField("description", description);
- }
final var postOperation = post();
if (postOperation != null) {
postOperation.generate(generator);
final var postOperation = post();
if (postOperation != null) {
postOperation.generate(generator);
generator.writeEndObject();
}
generator.writeEndObject();
}
- @Nullable String ref() {
- return null;
- }
-
- @Nullable String summary() {
- return null;
- }
-
- @Nullable String description() {
- return null;
- }
-
@Nullable OperationEntity post() {
return post;
}
@Nullable OperationEntity post() {
return post;
}