Giter Club home page Giter Club logo

origin-schema-generator's Introduction

JSON Schema Generator for OpenShift v3 Origin API Objects

Uses Go reflection to generate a JSON schema that describes one or more API resources in Openshift Origin.

Pre-requisits

Install go
Install godep

Building

To build, clone repo and run:

cd origin-schema-generator
godep restore
go build ./cmd/generate/generate.go  
./generate > kube-schema.json  

You should now be able to view the generated schema in kube-schema.json

Update dependency API's

To update openshift/kubernetes dependencies, run:

make [tag=v0.5.2] update-deps

Where the optional tag value is the tagged version of OpenShift. This will update all dependencies to those consistent with Openshift dependencies, including Kubernetes. This command should also be run when you need to have any new dependencies included in Godeps workspace, e.g. adding a new package for schema generation.

If you do not specify a tag value then the tag value will be read from .openshift-version in the root of the schema generator repo.

So if you're just looking to ensure all dependencies are vendored in the godep workspace run:

make update-deps

If you're looking to update the version of openshift & it's dependencies run:

make tag=<openshift_tag> update-deps

origin-schema-generator's People

Contributors

csrwng avatar fusesource-ci avatar imesh avatar iocanel avatar jimmidyson avatar jstrachan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.