mdsol/crichton — pull request #71 by pservedio (2013-10-22 21:23:54+00:00)
Title: New, improved display output, ad hoc responses, spec changes

Now output looks like this, for example

In file '/Users/pservedio/work_ruby/crichton/spec/fixtures/resource_descriptors/drds_descriptor_v1.yml':

States Section:
ERRORS:
Next property pointing to a state that is not specified in resource 'drds', in state 'collection', transition 'search', next state 'navegation'
WARNINGS:
External profile url 'http://alps.io/schema.org/Thing' exists in resource 'drd', in state 'activated', transition 'leviathan', but is not downloaded. Please run 'rake alps:store_all_external_documents'
External profile url 'http://alps.io/schema.org/WarrantyPromise' exists in resource 'drd', in state 'activated', transition 'repair-history', but is not downloaded. Please run 'rake alps:store_all_external_documents'
External profile url 'http://alps.io/schema.org/Thing' exists in resource 'drd', in state 'deactivated', transition 'leviathan', but is not downloaded. Please run 'rake alps:store_all_external_documents'

Descriptors Section:
ERRORS:
Resource 'total_count' descriptor section, type property 'semanticc' is invalid
WARNINGS:
Resource 'items' descriptor section does not have a 'sample' property
Resource 'create-drd' descriptor section does not have a 'sample' property
Resource 'leviathan' descriptor section does not have a 'sample' property
Resource 'update-drd' descriptor section does not have a 'sample' property
Resource 'update-drd' descriptor section does not have a 'href' property

Protocols Section:
ERRORS:
'application/jason' content_type invalid for protocol 'http', transition 'create'
WARNINGS:
Status codes property 'notes' is missing for transition 'search', protocol 'http'
Status codes property 'notes' is missing for transition 'create', protocol 'http'
Status codes property 'notes' is missing for transition 'create', protocol 'http'
Status codes property 'notes' is missing for transition 'show', protocol 'http'
Status codes property 'notes' is missing for transition 'activate', protocol 'http'
Status codes property 'notes' is missing for transition 'deactivate', protocol 'http'
Status codes property 'notes' is missing for transition 'update', protocol 'http'
Status codes property 'notes' is missing for transition 'delete', protocol 'http'
Status codes property 'notes' is missing for transition 'delete', protocol 'http'
end of validation test