1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-02 07:55:31 +00:00

Only drop API type if replacement type can be found

This commit is contained in:
Darren Shepherd
2020-03-12 14:01:40 -07:00
parent 06de395825
commit c7a5c4f069
7 changed files with 32 additions and 24 deletions

View File

@@ -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
}