mirror of
https://github.com/niusmallnan/steve.git
synced 2025-09-23 02:47:13 +00:00
Only drop API type if replacement type can be found
This commit is contained in:
@@ -89,14 +89,6 @@ func validSchema(schema *types.APISchema) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if attributes.PreferredVersion(schema) != "" {
|
||||
return false
|
||||
}
|
||||
|
||||
if attributes.PreferredGroup(schema) != "" {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user