Skip to content

Commit f0e0b31

Browse files
committed
Fix: removed full references
1 parent 9ee355c commit f0e0b31

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/kotlin/de/lancom/openapi/simple/entity/InvalidReference.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ data class InvalidReference(
1818
ResponseOrRef,
1919
SchemaOrRef,
2020
SecuritySchemeOrRef,
21-
de.lancom.openapi.simple.entity.ServerOrRef {
21+
ServerOrRef {
2222
override val componentType: ComponentType
2323
get() = throw UnsupportedOperationException("Invalid reference does not have a component type")
2424

src/main/kotlin/de/lancom/openapi/simple/entity/ServerReference.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import de.lancom.openapi.common.util.ValidParsedReference
55

66
data class ServerReference(
77
override val parsedReference: ValidParsedReference
8-
) : de.lancom.openapi.simple.entity.Reference, de.lancom.openapi.simple.entity.ServerOrRef {
8+
) : Reference, ServerOrRef {
99
init {
1010
if (parsedReference.componentType != this.componentType) {
1111
throw IllegalArgumentException("invalid component type ${parsedReference.componentType}!")
@@ -17,8 +17,8 @@ data class ServerReference(
1717
}
1818

1919
companion object {
20-
fun fromName(name: String): de.lancom.openapi.simple.entity.ServerReference {
21-
return de.lancom.openapi.simple.entity.ServerReference(ValidParsedReference(ComponentType.Servers, name))
20+
fun fromName(name: String): ServerReference {
21+
return ServerReference(ValidParsedReference(ComponentType.Servers, name))
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)