Skip to content

Commit

Permalink
docs: Add JSON schema for IDE validation (#4581)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Brabban <paul.brabban@gmail.com>
  • Loading branch information
brabster authored and simster7 committed Dec 10, 2020
1 parent 2f49720 commit 20f59de
Show file tree
Hide file tree
Showing 20 changed files with 6,096 additions and 34 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ codegen: \
manifests/base/crds/full/argoproj.io_workflows.yaml \
manifests/install.yaml \
api/openapi-spec/swagger.json \
api/jsonschema/schema.json \
docs/fields.md \
docs/cli/argo.md \
$(GOPATH)/bin/mockery
Expand Down Expand Up @@ -523,6 +524,9 @@ api/openapi-spec/swagger.json: $(GOPATH)/bin/swagger dist/kubeified.swagger.json
swagger validate api/openapi-spec/swagger.json
go test ./api/openapi-spec

api/jsonschema/schema.json: api/openapi-spec/swagger.json hack/jsonschema/main.go
go run ./hack/jsonschema

go-diagrams/diagram.dot: ./hack/diagram/main.go
rm -Rf go-diagrams
go run ./hack/diagram
Expand Down
Loading

0 comments on commit 20f59de

Please sign in to comment.