struct Authority::Clients::NewRequest

Included Modules

Defined in:

requests/clients/new_request.cr

Constant Summary

SCHEMA_VALIDATIONS = {name => {message: "Param name must be present.", presence: true}, description => {message: "Param description must be present.", presence: true}, logo => {message: "Param logo must be a valid logo URL.", presence: true, match: /https?:\/\/[\S]+/}, redirect_uri => {message: "Param redirect_uri must be valid redirect URL.", presence: true, match: /https?:\/\/[\S]+/}} of Nil => Nil
SCHEMA_VALIDATORS = [] of Nil

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(http_params, path : Array(String) = [] of String) #

Class Method Detail

def self.from_urlencoded(string) #

Instance Method Detail

def description : String #

[View source]
def error_messages #

[View source]
def errors #

def logo : String #

[View source]
def name : String #

[View source]
def redirect_uri : String #

[View source]
def scopes : String #

[View source]
def valid? #

def validate! #