Validate API examples. Rename files

Hrm.  Not yet.  Eventually.


> On Nov 10, 2014, at 6:53 PM, Vojtech Vitek <notifications@github.com> wrote:
> 
> In examples/examples_test.go:
> 
> >  	projectapi "github.com/openshift/origin/pkg/project/api"
> >  	templateapi "github.com/openshift/origin/pkg/template/api"
> >  )
> >  
> >  func TestExamples(t *testing.T) {
> >  	expected := map[string]runtime.Object{
> > -		"guestbook/template.json":                          &templateapi.Template{},
> > -		"hello-openshift/hello-pod.json":                   &kapi.Pod{},
> > -		"hello-openshift/hello-project.json":               &projectapi.Project{},
> > -		"sample-app/application-buildconfig.json":          &buildapi.BuildConfig{},
> > -		"sample-app/github-webhook-example.json":           nil, // Skip.
> > -		"sample-app/docker-registry-config.json":           &configapi.Config{},
> > -		"sample-app/application-template-stibuild.json":    &templateapi.Template{},
> > -		"sample-app/application-template-dockerbuild.json": &templateapi.Template{},
> > +
> > +		"guestbook/template.json":                              &templateapi.Template{},
> > +		"hello-openshift/hello-pod.json":                       &kapi.Pod{},
> > +		"hello-openshift/hello-project.json":                   &projectapi.Project{},
> > +		"sample-app/application-buildconfig.json":              &buildapi.BuildConfig{},
> > +		"sample-app/github-webhook-example.json":               nil, // Skip.
> @smarterclayton would it be possible to validate unknown JSON data files against something like kapi.Unknown{}?
> 
> —
> Reply to this email directly or view it on GitHub.
>