Class: Bosh::Workspace::Schemas::Releases

Inherits:
Membrane::Schemas::Base
  • Object
show all
Defined in:
lib/bosh/workspace/schemas/releases.rb

Instance Method Summary collapse

Instance Method Details

#validate(object) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/bosh/workspace/schemas/releases.rb', line 4

def validate(object)
  Membrane::SchemaParser.parse do
    [{
      "name"           => String,
      "version"        => ReleaseVersion.new,
      optional("url")  => String,
      optional("path") => enum(String),
      optional("ref")  => enum(String),
      optional("git")  => String,
    }]
  end.validate object
end