13668: Adds support for package version on API server.
[arvados.git] / services / api / app / controllers / arvados / v1 / schema_controller.rb
index 91685f59988bf1a852a7a25a2aa46f47a3f32300..8f6e2be72cd4d2e8bda1c29292eb0194452658de 100644 (file)
@@ -33,6 +33,7 @@ class Arvados::V1::SchemaController < ApplicationController
         version: "v1",
         revision: "20131114",
         source_version: AppVersion.hash,
+        package_version: AppVersion.package_version,
         generatedAt: db_current_time.iso8601,
         title: "Arvados API",
         description: "The API to interact with Arvados.",
@@ -123,7 +124,7 @@ class Arvados::V1::SchemaController < ApplicationController
         end
         object_properties = {}
         k.columns.
-          select { |col| col.name != 'id' }.
+          select { |col| col.name != 'id' && !col.name.start_with?('secret_') }.
           collect do |col|
           if k.serialized_attributes.has_key? col.name
             object_properties[col.name] = {