add validateListType to pkg/api/meta/schema_test.go

This commit is contained in:
Chao Xu
2016-07-25 22:03:39 -07:00
parent fa5f3b816e
commit 81858d755e
4 changed files with 167 additions and 16 deletions

View File

@@ -134,8 +134,9 @@ specific actions that create, update, delete, or get.
2. **Lists** are collections of **resources** of one (usually) or more
(occasionally) kinds.
Lists have a limited set of common metadata. All lists use the "items" field
to contain the array of objects they return.
The name of a list kind must end with "List". Lists have a limited set of
common metadata. All lists use the required "items" field to contain the array
of objects they return. Any kind that has the "items" field must be a list kind.
Most objects defined in the system should have an endpoint that returns the
full set of resources, as well as zero or more endpoints that return subsets of