module Croods::Resource::JsonSchema::Links::Destroy

Public Class Methods

schema() click to toggle source
# File lib/croods/resource/json_schema/links/destroy.rb, line 19
def schema
  {
    strictProperties: true,
    properties: {},
    type: ['object']
  }
end
target_schema(resource) click to toggle source
# File lib/croods/resource/json_schema/links/destroy.rb, line 27
def target_schema(resource)
  {
    anyOf: [
      resource.ref,
      { '$ref': '#/definitions/error' }
    ]
  }
end