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 35f1a5d54c
commit 7f6f947c4b
1 changed files with 3 additions and 2 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 2. **Lists** are collections of **resources** of one (usually) or more
(occasionally) kinds. (occasionally) kinds.
Lists have a limited set of common metadata. All lists use the "items" field The name of a list kind must end with "List". Lists have a limited set of
to contain the array of objects they return. 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 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 full set of resources, as well as zero or more endpoints that return subsets of